News for hackers. Stuff that matters.
Re:Yaft – Yet another framebuffer terminal by new299 on Saturday January 07, 2017 @04:33AM (#13343190)
Yay! This is cool.

I wrote something like this myself a while back: http://41j.com/hterm/

I recommend checking out libvterm (http://www.leonerd.org.uk/code/libvterm/). It abstracts out of lot of the v220/xterm terminal rendering code and is very neat. I'd love to see it get more support.

Also nice to see Sixel support (graphical terminal are fun!).

Re:Yaft – Yet another framebuffer terminal by VexorLoophole on Saturday January 07, 2017 @05:35AM (#13343381)
My programming skills are not advanced enough, to talk about the technical aspect of libvterm. But neovim uses it, and damn, it runs fast and smooth and feels native like any other terminal emulator INSIDE of neovim. Simply great. Hope someone will port it also over to emacs.
Re:Yaft – Yet another framebuffer terminal by astrodust on Saturday January 07, 2017 @03:32AM (#13343014)
The term's not something I've heard a lot, but is a "framebuffer terminal" the thing that engages outside of running a graphical session?

It's kind of neat to see improvements made here if that's the case. Not everyone will make extensive use of this, but having proper support for a lot of modern conveniences is never a bad thing.

Re:Yaft – Yet another framebuffer terminal by sjtgraham on Saturday January 07, 2017 @08:07AM (#13343946)
Exactly. The Linux console for example only supports a tiny number of colours. Folks use FB terminals for tty* for this reason etc.
Re:Yaft – Yet another framebuffer terminal by digi_owl on Saturday January 07, 2017 @04:47AM (#13343233)
> sixel (experimental)

Well hello there. Makes a guy wonder if it would be possible to run a web browser without X.

Re:Yaft – Yet another framebuffer terminal by ashark on Saturday January 07, 2017 @06:45AM (#13343618)
Retroarch, which provides a pretty graphical config fronted and file browser (more or less) to various programs that use its provided IO capabilities ("cores", implemented as dynamic libraries—mostly game console and computer system emulators, original games, and media-related programs) can run in the kernel's direct rending mode, which is, at least from the user's perspective, kind of like a framebuffer, though with 3d accelleration. If you could find a browser that can be packaged as a dynamic lib, output to a provided opengl interface, and accapt input programmatically, it could probably be ported to Retroarch very quickly by someone familiar with that process, and run without the x window system.
Re:Yaft – Yet another framebuffer terminal by Zardoz84 on Saturday January 07, 2017 @01:14PM (#13345609)
I remember using Awesomiun render to OpenGL, so this could be done.
Re:Yaft – Yet another framebuffer terminal by wonko1 on Saturday January 07, 2017 @04:54AM (#13343256)
Check out w3m (which has some graphics support).

There's also Netsurf, I've not used it but it. Looks awesome: http://www.netsurf-browser.org

Re:Yaft – Yet another framebuffer terminal by digi_owl on Saturday January 07, 2017 @04:56AM (#13343264)
Sadly neither of those can properly handle the kind of JS a modern site throws at a browser...
Re:Yaft – Yet another framebuffer terminal by yellowapple on Saturday January 07, 2017 @05:57AM (#13343454)
Netsurf is working on it by shipping with Duktape. Still very experimental, though.
Re:Yaft – Yet another framebuffer terminal by wonko1 on Saturday January 07, 2017 @05:00AM (#13343268)
No, this is true.

I wonder how hard that would be.

Re:Yaft – Yet another framebuffer terminal by viraptor on Saturday January 07, 2017 @04:54AM (#13343254)
It's possible without X. Links (http://links.twibright.com/) did it via framebuffer for years.

Unless you mean in actual text/sixel mode. Then I haven't heard of one.

Re:Yaft – Yet another framebuffer terminal by stuaxo on Saturday January 07, 2017 @06:38AM (#13343579)
Links definitely works in text mode, in fact I've only used it that way.
Re:Yaft – Yet another framebuffer terminal by viraptor on Saturday January 07, 2017 @07:05AM (#13343706)
I meant sixel, as in text pretending it's graphics.
Re:Yaft – Yet another framebuffer terminal by digi_owl on Saturday January 07, 2017 @08:08AM (#13343949)
Iirc, links do not use sixel but rather a trick of X. Meaning that it can only show images when run within certain terminal emulators (not anything derived from GTK or Qt).
Re:Yaft – Yet another framebuffer terminal by LukeShu on Sunday January 08, 2017 @12:37AM (#13348483)
The "trick of X" you speak of is that it figures out X window ID of the terminal, then asks the X server the coordinates of that window, then creates borderless windows at the correct coordinates above that window to show images.

However, in addition to this "trick of X" mode, links also supports rendering its own X window; with proportional fonts and everything; no terminal emulator needed.

However, the graphics system isn't based on X; X is just one backend; it can also render to the Linux framebuffer, so it doesn't even need X11 to be running, it can render full graphics straight in your TTY.

Re:Yaft – Yet another framebuffer terminal by hellofunk on Saturday January 07, 2017 @07:51AM (#13343892)
I can't figure out what mkfont_bdf is doing. Converting TTF to what kind of glyph?
Re:Yaft – Yet another framebuffer terminal by noselasd on Saturday January 07, 2017 @09:11AM (#13344209)
Re:Yaft – Yet another framebuffer terminal by zyllonbane on Saturday January 07, 2017 @09:43AM (#13344323)
tmux is a window manager if I say it is!