User: Password:
|
|
Subscribe / Log in / New account

wlterm: the native Wayland terminal emulator

wlterm: the native Wayland terminal emulator

Posted Sep 27, 2012 16:16 UTC (Thu) by endecotp (guest, #36428)
Parent article: wlterm: the native Wayland terminal emulator

> TSM is a terminal-emulator state
> machine that parses vt220/xterm control-sequences.
> There is no such
> library out there so I created TSM
> Other libraries like libvte have huge X, Gtk, Qt
> etc. dependencies (sadly).

How hard did he look?

When I wanted a terminal-emulator state machine library for Anyterm, I quickly found ROTE. I later replaced it with something of my own (http://svn.chezphil.org/anyterm/trunk/src/Terminal.hh & .cc). Although it's often better to write your own rather than re-using (other peoples' code stinks!), it's good to be honest about how hard you looked!


(Log in to post comments)

wlterm: the native Wayland terminal emulator

Posted Sep 27, 2012 16:49 UTC (Thu) by dvdhrm (subscriber, #85474) [Link]

The reasons ROTE wasn't used are:
ROTE does not support Unicode, does only cover like 1% of required escape-sequences, has not seen any update for like 5 years, does not support 256colors, does not support XKB input...

Same applies for VTERM which is based on it. And from my experience I can tell you that if Unicode support isn't planned right from the beginning, I wouldn't base my work on this.

wlterm: the native Wayland terminal emulator

Posted Sep 27, 2012 17:58 UTC (Thu) by roblatham (guest, #1579) [Link]

mosh (http://mosh.mit.edu) prides itself on robust (including UTF-8) terminal support. Pitty they did not put their terminal-handling mojo into a library:

https://github.com/keithw/mosh/tree/master/src/terminal

wlterm: the native Wayland terminal emulator

Posted Sep 29, 2012 0:17 UTC (Sat) by lindi (subscriber, #53135) [Link]

It wasn't very robust when I tried it. Just typing

echo -en "\e[2147483647L"

caused it to spend a few minutes wasting CPU time and not responding to anything (CVE-2012-2385, has now been fixed).

wlterm: the native Wayland terminal emulator

Posted Sep 27, 2012 18:33 UTC (Thu) by cyanit (guest, #86671) [Link]

There is Putty's terminal code which is reused in IPBT, although IIRC the code quality kind of sucks (non-object oriented spaghetti C).

wlterm: the native Wayland terminal emulator

Posted Sep 28, 2012 14:05 UTC (Fri) by Seegras (guest, #20463) [Link]

I switched to urxvt (rxvt-unicode-256color) after I switched to UTF8 (and wterm and aterm couldn't handle it). Right now, it's probably the best terminal in terms of features and compatibility.

And I can't absolutely imagine anything rewritten to only come near it within 5 years.

Try this: Use utf8; ssh to some host and start Midnight Commander, Do all characters and line-characters look right? Do all keyboard-shortcuts work? Does clicking with the mouse on menu-items work? If not, your terminal is trash and totally unuseable.
Start mutt, read your spamfolder, can you see russian and chinese characters in the spam or are there garbled characters? If garbled, either your terminal is broken or misconfigured.
Now, try w3m (w3m-img) locally. Where are the images displayed? If they're not inline, you've still got some work to do.

wlterm: the native Wayland terminal emulator

Posted Sep 28, 2012 15:12 UTC (Fri) by martinfick (subscriber, #4455) [Link]

I'd rather my SPAM stay garbled.

wlterm: the native Wayland terminal emulator

Posted Sep 28, 2012 19:08 UTC (Fri) by mathstuf (subscriber, #69389) [Link]

> Now, try w3m (w3m-img) locally.

How did I not know about this before? /me searches for webkit-based terminal browser.

wlterm: the native Wayland terminal emulator

Posted Sep 28, 2012 22:17 UTC (Fri) by drag (subscriber, #31333) [Link]

It works very well when combined as a pager for things like mutt. I know lots of people take a hardcore stance on html email, but it is (and has been) a valid internet standard for a very long time and a lot of people use it. So w3m is nice for this.

wlterm: the native Wayland terminal emulator

Posted Oct 1, 2012 9:17 UTC (Mon) by niner (subscriber, #26151) [Link]

Tried your tests on konsole out of curiousity and can report that at least version 4.9.1 passed all your tests without problems.

wlterm: the native Wayland terminal emulator

Posted Oct 4, 2012 12:21 UTC (Thu) by juliank (subscriber, #45896) [Link]

I can't even see Chinese characters in my browser... Just boxes, maybe with numbers in them.


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds