| Age | Commit message (Collapse) | Author |
|
This should make sure that vis always terminates and never hangs
waiting for further input. Lua errors in particular cause a new
window/file to be displayed showing a detailed error message.
Previously only this internal file was closed but the original
file remained open and prevented vis from exiting.
|
|
Using cpp(1) to remove comments might not have been the best idea,
some versions of clang leave trailing white space intact whereas
gcc removes them. These trailing spaces were wrongly interpreted
as <Space> input. This hopefully fixes the tests on Mac OS X.
|
|
Instead of using the keys utility to convert the textual key representation
into something a terminal would send and then pipe it to vis' standard input
use the Lua API to directly feed the keys into vis' input queue.
This has a number of advantages:
- it is less fragile: the keys utility is incomplete and only handles the
most common keys
- it is faster because there is no need to artificially delay input
after an <Escape> key to give vis a chance to distinguish between
a single <Escape> and the start of an escape sequence
|