-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to libtickit (libtermkey deprecated) #250
Comments
dupe of #79 |
Duplicate |
Some remarks since this has come up a couple of times:
|
I like how termbox strives to be simple, but it requires python to build as it uses I do not see why it is so hard to draw on a terminal: We need to know how much width a char takes on the screen that we can do with UTF-8 library, then just have a function that draw a single line, used to redraw the whole buffer, to scroll one line up / down... This is an attempt of implementation, if ever interested. Still has some issues at this point. |
As mentioned in the above list and also in a related comment: curses provides double buffering. It tries to minimize the required escape sequences used to update the terminal to the new state. For example if you move the cursor, the status bar is redrawn, but this should probably not invalidate the complete screen. Whether this is actually needed in practice (or only over slow serial lines), is another question. Also using raw escape sequences might work in certain environments you control, but is not really portable. That is why the terminfo database exists. In theory it would be nice to ditch all this legacy cruft and only have a single (or very few) terminal descriptions. Sabotage Linux works towards that goal. Having said all that, a |
I think I get it all now, thanks for explainations, and this makes sense to me. By writing a text editor, with the choices made, you also contribute to fix terminal interaction, it is great. |
isn't that what kilo does?
|
Yes, that is the idea :) Without syntax highlighting and modal, and customizable keybindings the way vis or sandy does it... Kilo is a proof of concept, busybox vi is casual editing, traditionnal vi is old thing fixed up, but too poor in features... And to me vis is vim done with sane choices at every levels. So between Vim / neovim and busybox vi, there is a huge gap with only |
I'm not sure if this will "just work" once libtermkey is cleaned out as a dependency, or if it'll require some deeper updating, but libtermkey is in fact deprecated and so making this project viable into the future will likely require transition.
It'd be best to do this before any extra tech debt is accrued by putting it off.
Thanks! I'm really interested to see how this project grows.
The text was updated successfully, but these errors were encountered: