fbterm probs/solutions

Forum rules
Share your brain ;)
User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

fbterm probs/solutions

Unread post by wuxmedia » Fri Oct 04, 2013 2:48 pm

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Fri Oct 04, 2013 5:12 pm

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.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: fbterm probs/solutions

Unread post by machinebacon » Fri Oct 04, 2013 5:16 pm

3) confused with the fonts? dpkg-reconfigure console-setup
..gnutella..

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Fri Oct 04, 2013 6:06 pm

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Fri Oct 04, 2013 6:44 pm

Image

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.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Fri Oct 04, 2013 6:56 pm

Is the newline char (\n) still there? You should be able to kill that whole "printf" line without it 'warning' you.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Fri Oct 04, 2013 7:10 pm

yeah i did this;

Code: Select all

; else
        {
                printf("");
                tcsetattr(0, TCSANOW, &old_termios);
i guess i could just kill the line.

I was thinking about the whole damn function, might not be such a good idea. 8D
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Fri Oct 04, 2013 7:29 pm

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.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Fri Oct 04, 2013 7:40 pm

cheers Joe.
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Sat Oct 05, 2013 10:05 am

Ok It worked, removed the printf line.

fonts - to find the font to change use this

Code: Select all

fc-list | cut -d : -f 2 | sort -u | uniq
to get the names of your installed fonts, to add,

Code: Select all

 fbterm-bi yourpic.jpg -n 'source code pro' -s 12 
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
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Sun Oct 06, 2013 6:51 pm

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:

Code: Select all

else
{/*
  printf("restore console\n");
  tcsetattr(0, TCSANOW, &old_termios);*/
}
Not resetting the struct's attributes doesn't seem to have any adverse side-effect, after about an hour of use.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Sun Oct 06, 2013 7:02 pm

aahhh, the right(est) way to do it, i commented the whole function() which the compiler *did* moan about 8)
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Sun Oct 06, 2013 7:34 pm

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:
Image
See the left pane.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Sun Oct 06, 2013 8:00 pm

cool! Thanks.
I don't even need to change the topic title!
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
DebianJoe
Frame Buffer
Posts: 1915
Joined: Mon Jul 01, 2013 5:41 am
Location: emacs.d

Re: fbterm probs/solutions

Unread post by DebianJoe » Sun Oct 06, 2013 8:43 pm

Something about using the FB build brings out my whimsical side. So, let me suggest a fun little program to add.
bsod

Image

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.
|>>BBQ Roaster, Alpha Branch<< | >> clinky << | >> X11 must die << |
Thanks BASIC

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: fbterm probs/solutions

Unread post by GekkoP » Wed Oct 16, 2013 4:03 pm

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.

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Wed Oct 16, 2013 4:47 pm

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;

Code: Select all

./fbterm-bi <wallpaper> --font-names='dream orphanage' --font-size='13' --font-width='12'
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???
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: fbterm probs/solutions

Unread post by GekkoP » Wed Oct 16, 2013 4:54 pm

DejaVu Sans. I'm on a Debian Sid I did from a mini iso netinstall.
I'm trying with:

Code: Select all

./fbterm-bi <wallpaper> --font-names='DejaVu Sans' --font-size='13' --font-width='12'
Still no good.

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Wed Oct 16, 2013 5:00 pm

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
"Seek, and Ye shall find"
"Github | Chooons | Site"

User avatar
wuxmedia
Grasshopper
Posts: 6454
Joined: Wed Oct 17, 2012 11:32 am
Location: Back in Blighty
Contact:

Re: fbterm probs/solutions

Unread post by wuxmedia » Wed Oct 16, 2013 5:27 pm

Image


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
use johnraffs cool curl script from here;
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>
wait....
back to copy mode to grab the url. (1st forum one works ok)
Load up links2;
dump that in the forum.

phew.
"Seek, and Ye shall find"
"Github | Chooons | Site"

Post Reply