Source

srw / srw.c

Author Commit Message Labels Comments Date
Default avatar Evan Gates
srw no longer eats child's output. thanks to Michal kazior for that fix
Default avatar Evan Gates
update usage()
Default avatar Evan Gates
add -w for passing SIGWINCHs
Default avatar Evan Gates
add sigwinch handler, error check on select
Default avatar Evan Gates
set the pty's winsize
Default avatar Evan Gates
don't allow buffer overflow, and add ^V
Default avatar Evan Gates
add ^D, move ^L so it's in order
Default avatar Evan Gates
cleanup and better sigchld handling
Default avatar Evan Gates
use STDIN not 0
Default avatar Evan Gates
better signal handling
Default avatar Evan Gates
add SIGCONT handler so we have the right settings
Default avatar Evan Gates
stupid indentation
Default avatar Evan Gates
why does it fail forks?
Tags
0.6
Default avatar Evan Gates
not a fan of the sigwinch stuff, keep it simple, use ^L if you need to
Default avatar Evan Gates
added -w for sigwinch handling
Default avatar Evan Gates
use memmove instead of shift_buf
Default avatar Evan Gates
revert to last clean before utf8 attempts, that's in a branch now
Default avatar Evan Gates
move cursor wcwidth() of utf8 character on backspace
Default avatar Evan Gates
first attempt at utf8 support, i think everything works except scrolling right now. god that code is ugly
Default avatar Evan Gates
add ^L to send SIGWINCH to child process group (redraw cw)
Default avatar Evan Gates
ok, it's really really really solved this time, i promise
Default avatar Evan Gates
do the read without checking read length against buf length, that scared me
Default avatar Evan Gates
i'm a dumbass sometimes
Default avatar Evan Gates
change from file descriptors to streams so i can use fgets/fputs, and the rest because puts(3) says don't mix calls to stdio output functions with calls to write(2)
Default avatar Evan Gates
get rid of bell option, this can be done with sed
Tags
0.4
Default avatar Evan Gates
small scrolling fix
Default avatar Evan Gates
added -b for bell on new output
Default avatar Evan Gates
indentation, yes it got me again
Default avatar Evan Gates
change line editing back to stdout. the whole srw tail -f > in idea was wrong, seeing as tail doesn't cat. that being said i made a simple program that did tail -f with inotify and echoed from stdin to stdout, but it turns out you can't tell the difference between stdin and stdout from a pty
Default avatar Evan Gates
i was trying to eat unsupported escape codes all wrong, not that i'm doing it correctly now, but at it least it works better
  1. Prev
  2. 1
  3. 2
  4. Next
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.