Skip to content

Instantly share code, notes, and snippets.

@rfjakob
Created September 10, 2021 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rfjakob/8b944ec7e8fbdd67b165215f81f5666c to your computer and use it in GitHub Desktop.
Save rfjakob/8b944ec7e8fbdd67b165215f81f5666c to your computer and use it in GitHub Desktop.
"\r", 1) = 1
write(1, "\33[?25l", 6) = 6
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
getcwd("/home/jakob/tmp", 4097) = 16
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
getcwd("/home/jakob/tmp", 4097) = 16
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "/home/jakob/tmp/foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
rt_sigprocmask(SIG_BLOCK, [WINCH], NULL, 8) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost isig -icanon -echo ...}) = 0
rt_sigaction(SIGINT, {sa_handler=0x55b2f3746520, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
openat(AT_FDCWD, "foo", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
rt_sigaction(SIGINT, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
ioctl(0, TCGETS, {B38400 -opost isig -icanon -echo ...}) = 0
ioctl(0, SNDCTL_TMR_START or TCSETS, {B38400 -opost -isig -icanon -echo ...}) = 0
ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
rt_sigprocmask(SIG_UNBLOCK, [WINCH], NULL, 8) = 0
fcntl(3, F_GETFL) = 0x8001 (flags O_WRONLY|O_LARGEFILE)
rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f225c6dc320}, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
write(1, "\33[22;57H", 8) = 8
write(1, "\33[1K ", 5) = 5
write(1, "\33(B\33[0;7m[ Writing... ]\33(B\33[m\33[K", 32) = 32
rt_sigaction(SIGTSTP, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(3, "dddddddddddd\nasd\nasd\nas\nda\nsd\nas"..., 79) = 79
fsync(3) = 0
close(3) = 0
newfstatat(AT_FDCWD, "foo", {st_mode=S_IFREG|0644, st_size=79, ...}, 0) = 0
rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f225c6dc320}, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
write(1, "\33[1;128H", 8) = 8
rt_sigaction(SIGTSTP, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f225c6dc320}, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
write(1, "\33[22;56H", 8) = 8
write(1, "\33(B\33[0;7m[ Wrote 13 lin", 23) = 23
write(1, "es ]", 4) = 4
write(1, "\33(B\33[m", 6) = 6
rt_sigaction(SIGTSTP, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f225c6dc320}, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
write(1, "\33[23;17H", 8) = 8
write(1, "\33(B\33[0;7m^O\33(B\33[m Write Out \33"..., 91) = 91
write(1, "\33(B\33[0;7m^T\33(B\33[m Execute\t", 26) = 26
write(1, "\33(B\33[0;7m^C\33(B\33[m Location\33[99G", 31) = 31
write(1, "\33(B\33[0;7mU\33(B\33[m Undo \33(B"..., 63) = 63
write(1, "\33(B\33[0;7mX\33(B\33[m Exit \t", 24) = 24
write(1, "\33(B\33[0;7m^R\33(B\33[m Read File \33"..., 93) = 93
write(1, "\33(B\33[0;7m^J\33(B\33[m Justify \33"..., 87) = 87
write(1, "\33(B\33[0;7mM-6\33(B\33[m Copy", 23) = 23
rt_sigaction(SIGTSTP, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
rt_sigaction(SIGTSTP, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f225c6dc320}, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, 8) = 0
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
poll([{fd=0, events=POLLIN}], 1, 0) = 0 (Timeout)
write(1, "\r\33[2d", 5) = 5
rt_sigaction(SIGTSTP, {sa_handler=0x55b2f37483e0, sa_mask=~[KILL STOP RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f225c6dc320}, NULL, 8) = 0
write(1, "\33[?12l\33[?25h", 12) = 12
read(0,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment