summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-21separate write-tty commandAndrew Cady
2024-08-20fix all problems with signals? Andrew Cady
2024-08-20many changes basically workingAndrew Cady
the problem is that when the top pane sends SIGUSR1 it does not quit the bottom in the right order and an extra character ends up being read from the terminal in the bottom before a write error signals the end of the connection. Our signal of termination from the top is not reaching the right pid, the pid of the socat inside of the read_char needs to be reached by SIGUSR1, instead of $$ the outermost shell, where killing the job in job control should be enough to break the connection to the tty, it remains probably as long as socat remains running, we need to kill the whole process group of read-tty when killing the main process or when it exits
2024-08-20"new" backgrounding codeAndrew Cady
2024-08-20avoid evalAndrew Cady
2024-08-20remove commentsAndrew Cady
2024-08-20factorAndrew Cady
2024-08-20soft cursorAndrew Cady
2024-08-19read-tty: line-wrap based on window sizeAndrew Cady
2024-08-19new command: read-ttyAndrew Cady
2024-08-19reading characters is working! it's really working!!!!!Andrew Cady
2024-08-19finally working: code to read characters from terminalAndrew Cady
2024-08-19almost workingAndrew Cady
2024-08-19trivialAndrew Cady
2024-08-19trivialAndrew Cady
2024-08-15automatically install dependenciesu
moved source to src/
2024-08-15replace "cat -v" with pure bash implementationAndrew Cady
2024-08-14minor bash cleanupsAndrew Cady
2024-08-14silence more job control messagesAndrew Cady
2024-08-14use block syntax for temporarily redirecting stderrAndrew Cady
2024-08-14hide background jobs from user outputAndrew Cady
also, using kill -TERM to kill the input forwarding socat, whereupon it will be restarted as necessary. there is no reason to leave it running stopped in the background, i guess.
2024-08-14implement pause/resume for input forwardingAndrew Cady
2024-08-14set /proc/$$/commAndrew Cady
2024-08-14improve error reportingAndrew Cady
2024-08-14unusedAndrew Cady
2024-08-14forward() will restart top process if necessaryAndrew Cady
it issues a warning if so
2024-08-14control codes shown in boldAndrew Cady
The 'soft_cursor' function is now somewhat mis-named, since it also handles putting bold on the control codes. This is because the stream input to soft_cursor is a stream of single characters. Putting bold on the control codes creates multi-byte sequences that must be treated as single characters on the display. Soft_cursor could read one line per displayed character and an input_filter could output line delimiters -- if it was needed to have composability here. A functor on the stream is needed, changing its type. Its current type cannot represent multi-byte characters (except Unicode characters). An extra pipe layer would make the innermost loop slower, though. A more efficient alternative is to rename the function.
2024-08-14use namerefs in disconnect() argsAndrew Cady
2024-08-13use abbreviationsAndrew Cady
2024-08-13up-to-date bash can choose a new fd automatically!Andrew Cady
2024-08-13move restart handling code to more natural spotAndrew Cady
2024-08-13cfmakeraw instead of rawerAndrew Cady
not sure if it does anything different, but only cfmakeraw is documented.
2024-08-13start_top() will do nothing if already startedAndrew Cady
2024-08-13Fixed bug in soft cursor that was already fixedAndrew Cady
Wrapping around the EOL with a background color would set the whole line's background color. Bug was coming back only when restarting and reconnecting to background. Something to do with the terminal state. Issuing 'reset' in-between would prevent the bug from surfacing. Fixed it even better, apparently, by always printing an uncolored space+backspace before printing the colored space+backspace.
2024-08-12MakefileAndrew Cady
2024-08-12restarting betterAndrew Cady
2024-08-12move wait call to disconnect()Andrew Cady
2024-08-12use title from environmentAndrew Cady
2024-08-12improve restartsAndrew Cady
2024-08-12implement soft cursor and helpful input filterAndrew Cady
2024-08-12eliminate a socatAndrew Cady
2024-08-12bidirectional coproc input filter!Andrew Cady
2024-08-12two sockets one socatAndrew Cady
2024-08-12two socat solutionAndrew Cady
2024-08-11all bugs have been removedAndrew Cady
2024-08-02unusedAndrew Cady
2024-08-02rename the coprocAndrew Cady
2024-08-01this fixes bug where e.g. "echo '$\003'" kills socatAndrew Cady
2024-08-01much improved terminal and signal handlingAndrew Cady
2024-08-01use $BOT_CMD againAndrew Cady