aboutsummaryrefslogtreecommitdiff
path: root/ui-curses.h
AgeCommit message (Collapse)AuthorFilesLines
2017-03-14Restructure display codeMarc André Tanner1-10/+0
Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces.
2015-11-08Delete now obsolete syntax.hMarc André Tanner1-1/+0
2015-10-14ui: refactor syntax style definitionsMarc André Tanner1-20/+1
Styles can now be specified as strings which will make them easier to specify from outside the editor. The following style attributes can be given in a comma separated list: bold italics underlined fore:color back:color where color is either a hex value of the form #aabbcc or one of the predefined colors: black red green yellow blue magenta cyan white
2015-10-05vis: rework input handling using libtermkeyMarc André Tanner1-15/+0
Key bindings are now specified as symbolic key strings, this will eventually allow run time configurable key mappings. This introduces a bulid time dependency on libtermkey which can be found at: http://www.leonerd.org.uk/code/libtermkey/
2015-09-06ui: differentiate between Ctrl-J and enterMarc André Tanner1-1/+0
Thus enter no longer creates new cursors, use CTRL-j instead. Closes #69
2015-07-21ui: further separate curses related user interface codeMarc André Tanner1-1/+21
By now ui-curses.[hc] are the only files dealing directly with curses related functions. Integration of a proper mainloop is still pending.
2015-07-09ui: abstract curses related special keys awayMarc André Tanner1-0/+17
2015-04-03Preliminary user interface separationMarc André Tanner1-0/+9
In theory only ui-curses.[hc] should depend on curses, however in practice keyboard input is still handled in vis.c. Furthermore the syntax definitions as well as keyboard bindings and selection code in window.c still depends on some curses constants. There is also a slight regression in that the window status bar does not show the current mode name. This and related global state should be eliminated in the future.