fbterm probs/solutions
Forum rules
Share your brain ;)
Share your brain ;)
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
fbterm probs/solutions
So I wanted to re-create Joe's fbterm look.
I have followed his excellent recipe (using Tiny as a base) and ended up with it working, essentially.
(i commented out the tmux lines - to get term colours, I needed to put the colour script above the tmux lines, so normal tty has the colours.)
but pimping it up has been problematic;
1) console colours set by the usual script doesn't stick.
workaround;
https://code.google.com/p/fbterm/issues/detail?id=53
2) fbv compiled and installed without a hitch (via godspeed1989 git repo)
using the script provided in the man pages works, but dumps 'restore console' indelibly on the screen 8( not sure what is causing it, 'export' and 'shift' don't appear to have --quiet options.
I don't recall this happening last time.
3) i'm confused with the fonts, but I think i've got it, I did have it working....
so thats it, just moaning really.
I have followed his excellent recipe (using Tiny as a base) and ended up with it working, essentially.
(i commented out the tmux lines - to get term colours, I needed to put the colour script above the tmux lines, so normal tty has the colours.)
but pimping it up has been problematic;
1) console colours set by the usual script doesn't stick.
workaround;
https://code.google.com/p/fbterm/issues/detail?id=53
2) fbv compiled and installed without a hitch (via godspeed1989 git repo)
using the script provided in the man pages works, but dumps 'restore console' indelibly on the screen 8( not sure what is causing it, 'export' and 'shift' don't appear to have --quiet options.
I don't recall this happening last time.
3) i'm confused with the fonts, but I think i've got it, I did have it working....
so thats it, just moaning really.
Re: fbterm probs/solutions
I may have to rebuild this system just to see what a potential workaround would be for the screen dumps. I don't have any tips right off of the top of my head, primarily because I never had the problem before.
...killx perhaps. :D
Edit: Although, it's worth mentioning that the problem might not exist there because systemd is notorious for dumping info into ttys, although that doesn't sound "boot" specific at all, but is most likely related to the term itself.
...killx perhaps. :D
Edit: Although, it's worth mentioning that the problem might not exist there because systemd is notorious for dumping info into ttys, although that doesn't sound "boot" specific at all, but is most likely related to the term itself.
-
- Baconator
- Posts: 10253
- Joined: Thu Sep 16, 2010 11:03 am
- Location: Pfälzerwald
- Contact:
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
hang on might be a script issue, the cursor off bit. in this forum it looked like, '|' in my terminal it looked like '1' on the arch boards I'm scraping now looks like 'l'
quick reboot - i'll try 'elle'.
damn typography.
quick reboot - i'll try 'elle'.
damn typography.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
it's fbv I dunno why.
I (being the supafly l33t c0d3r, not) hacked the main.c and deleted the string 'console restore' then 'make'd it again - It moaned about having a null string, but went through.
I still have a block of a char left on screen. but that's ok, can't think why it prints anything.
damn console colours will not change, logged in on all ttys all coloured, not fbterm. oh well.
Re: fbterm probs/solutions
Is the newline char (\n) still there? You should be able to kill that whole "printf" line without it 'warning' you.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
yeah i did this;
i guess i could just kill the line.
I was thinking about the whole damn function, might not be such a good idea. 8D
Code: Select all
; else
{
printf("");
tcsetattr(0, TCSANOW, &old_termios);
I was thinking about the whole damn function, might not be such a good idea. 8D
Re: fbterm probs/solutions
Just comment it out, it doesn't look like it will make any difference.
/* stupid function
* goes in here */
^^like this should test to see if you can't just get rid of it.
/* stupid function
* goes in here */
^^like this should test to see if you can't just get rid of it.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
Ok It worked, removed the printf line.
fonts - to find the font to change use this to get the names of your installed fonts, to add, for example.
Bitmaps like artwiz sort of works - Lime is fine. the others, so far, don't seem to render correctly 8(
HINT< change the width
fonts - to find the font to change use this
Code: Select all
fc-list | cut -d : -f 2 | sort -u | uniq
Code: Select all
fbterm-bi yourpic.jpg -n 'source code pro' -s 12
Bitmaps like artwiz sort of works - Lime is fine. the others, so far, don't seem to render correctly 8(
HINT< change the width
Re: fbterm probs/solutions
I had the same issue that Wux did with the "restore console" firing off. The quick answer is to open up main.c in fbv and starting at line 41 make it look like:
Not resetting the struct's attributes doesn't seem to have any adverse side-effect, after about an hour of use.
Code: Select all
else
{/*
printf("restore console\n");
tcsetattr(0, TCSANOW, &old_termios);*/
}
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
aahhh, the right(est) way to do it, i commented the whole function() which the compiler *did* moan about 8)
Re: fbterm probs/solutions
Hey, wux, I'm about to turn your "moaning" thread into a cool place for /dev/fb0 user tricks. :D
If you're ever thinking "Man, I need a sweet pdf reader, but one that fits in a little window on only part of my tmux'd out screen" download "poppler-utils" from the Debian repos, and use the command "pdftohtml <filename>" on it. Then, links/links2/elinks/w3m/ will make a really nice way to browse your pdf files in a reasonably well formatted document.
Edit:
See the left pane.
If you're ever thinking "Man, I need a sweet pdf reader, but one that fits in a little window on only part of my tmux'd out screen" download "poppler-utils" from the Debian repos, and use the command "pdftohtml <filename>" on it. Then, links/links2/elinks/w3m/ will make a really nice way to browse your pdf files in a reasonably well formatted document.
Edit:
See the left pane.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
cool! Thanks.
I don't even need to change the topic title!
I don't even need to change the topic title!
Re: fbterm probs/solutions
Something about using the FB build brings out my whimsical side. So, let me suggest a fun little program to add.
bsod
Now you can bring all of the joy of using Windows to your practically indestructible no-X build. Download the .tgz, satisfy deps (I had them all, but I have a huge ncurses library already), and enjoy the sensation of a crash...but you can just tap enter to get out of it.
bsod
Now you can bring all of the joy of using Windows to your practically indestructible no-X build. Download the .tgz, satisfy deps (I had them all, but I have a huge ncurses library already), and enjoy the sensation of a crash...but you can just tap enter to get out of it.
Re: fbterm probs/solutions
I too have font problems like wux.
Whatever value I put in .fbtermrc is not rendered properly. The only one that seems to work is font-names=mono.
Whatever value I put in .fbtermrc is not rendered properly. The only one that seems to work is font-names=mono.
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
I run the command straight to the script.
I just played around and it seems its the width.
are you on a BBQ spin, you should have abunch of fonts to try with, I updated my one liner above....
http://linuxbbq.org/bbs/viewtopic.php?f ... 645#p10645
try this;
although thats a stupid one 8) I would recommend a bitmap pack such as artwiz, or the forks of said font.
what specific font are you trying?
you are putting quotes around them???
I just played around and it seems its the width.
are you on a BBQ spin, you should have abunch of fonts to try with, I updated my one liner above....
http://linuxbbq.org/bbs/viewtopic.php?f ... 645#p10645
try this;
Code: Select all
./fbterm-bi <wallpaper> --font-names='dream orphanage' --font-size='13' --font-width='12'
what specific font are you trying?
you are putting quotes around them???
Re: fbterm probs/solutions
DejaVu Sans. I'm on a Debian Sid I did from a mini iso netinstall.
I'm trying with:
Still no good.
I'm trying with:
Code: Select all
./fbterm-bi <wallpaper> --font-names='DejaVu Sans' --font-size='13' --font-width='12'
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
try playing with the height and width, thats all i could do. remember you'll find a NON Monospaced font will look pretty odd.
I dont seem to have dejavu, i'll d/l it to try and replicate your prob
I dont seem to have dejavu, i'll d/l it to try and replicate your prob
- wuxmedia
- Grasshopper
- Posts: 6454
- Joined: Wed Oct 17, 2012 11:32 am
- Location: Back in Blighty
- Contact:
Re: fbterm probs/solutions
here's a (better) rubbish how to;
get, host and post a FB scrot in NoX...
best way is fbgrab, i'm dumb so i use fbcat, then 'convert' to .png
Code: Select all
fbcat > pic.ppd
convert pic.ppd pic.png
http://linuxbbq.org/bbs/viewtopic.php?f ... 645#p10645
using NoX - You'll need to use tmuxs copy/paste function.
hit your keybind, then '[' this drops you in copy mode (a little '0/0' pops up top right usually)
you can now move the cursor like you're in nano or something.
find you text, then hit space, now you can mark the text.
Now you've done marking.
Hit 'enter' it should now be in the buffer.
Then paste that in nano, use keybind ']' to dump it in there.
save it, chmod it, up your pic,
Code: Select all
./johnraffsscript <yourpic.png>
back to copy mode to grab the url. (1st forum one works ok)
Load up links2;
dump that in the forum.
phew.