Source

srw / srw.c

Author Commit Message Labels Comments Date
Evan Gates
why does it fail forks?
Tags
0.6
Evan Gates
not a fan of the sigwinch stuff, keep it simple, use ^L if you need to
Evan Gates
added -w for sigwinch handling
Evan Gates
use memmove instead of shift_buf
Evan Gates
revert to last clean before utf8 attempts, that's in a branch now
Evan Gates
move cursor wcwidth() of utf8 character on backspace
Evan Gates
first attempt at utf8 support, i think everything works except scrolling right now. god that code is ugly
Evan Gates
add ^L to send SIGWINCH to child process group (redraw cw)
Evan Gates
ok, it's really really really solved this time, i promise
Evan Gates
do the read without checking read length against buf length, that scared me
Evan Gates
i'm a dumbass sometimes
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)
Evan Gates
get rid of bell option, this can be done with sed
Tags
0.4
Evan Gates
small scrolling fix
Evan Gates
added -b for bell on new output
Evan Gates
indentation, yes it got me again
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
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
Evan Gates
do all the line editing on stderr, so we can redirect output, which means that the cw part of pcw is really not needed if we just do 'srw tail -f > in'. the only problems with that are that tail -f updates periodically (use inotail?) and ii doesn't create |in automagically. if that's fixed then i can get rid of cw
Evan Gates
eat unknown escape codes
Tags
0.3
Evan Gates
add Home, End, Delete, tried fancier MIN/MAX macros to make sure nothing is evaluated twice, but it's not worth getting rid of the -pedantic flag, so i'll just try to be safe and not use MIN/MAX with a function call or increment/decrement
Evan Gates
added ^B ^F ^K
Evan Gates
stupid indentation again, i need to fix this
Evan Gates
add ^a and ^e
Evan Gates
^w works
Evan Gates
added cursor and arrow keys, working on ^w
Evan Gates
different tab settings at home and work
Evan Gates
added ^u and ^w
Evan Gates
Aled's fix for linux vs bsd
Evan Gates
added -DLINUX and #if for pty.h vs util.h (thx Aled)
  1. Prev
  2. 1
  3. 2
  4. Next