Fix ^Z r_line input buffer garbage
This commit is contained in:
parent
44a027c027
commit
ae239cbbc9
|
@ -55,9 +55,11 @@ static int r_line_readchar() {
|
|||
int ret = read (0, buf, 1);
|
||||
if (ret == -1) return 0; // read no char
|
||||
if (ret == 0) return -1; // eof
|
||||
//eprintf ("(((0x%x)))\n", buf[0]);
|
||||
// TODO: add support for other invalid chars
|
||||
if (*buf==0x1a) { // ^Z
|
||||
kill (getpid (), SIGSTOP);
|
||||
buf[0] = 0;
|
||||
}
|
||||
if (*buf==0xc2 || *buf==0xc3) {
|
||||
read (0, buf+1, 1);
|
||||
|
|
|
@ -99,7 +99,7 @@ dist:
|
|||
vdoc:
|
||||
-rm -rf vdoc
|
||||
cat vapi/r_*.vapi > libr.vapi
|
||||
valadoc --package-version=${VERSION} --package-name=libr --driver 0.16.x -o vdoc libr.vapi
|
||||
valadoc --package-version=${VERSION} --package-name=libr -o vdoc libr.vapi
|
||||
-rm -f libr.vapi
|
||||
# rsync -avz vdoc/* pancake@radare.org:/srv/http/radareorg/vdoc/
|
||||
|
||||
|
|
Loading…
Reference in New Issue