Github, y u no allow attachments on issues????
Created
April 11, 2012 01:21
-
-
Save wez/2356122 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Tue Apr 10 22:31:42 2012 | |
[1m[7m%[27m[1m[0m ]0;wez@W:~ [0m[27m[24m[J[33m2 [35mwez@W [32m22:31 [35m~ [32m[36m%(B[m [Kccd src[1m/[0m[0m/mosh[1m/[0m[0m | |
]0;cd src/mosh -- wez@W:~[1m[7m%[27m[1m[0m ]0;wez@W:~/src/mosh [0m[27m[24m[J[33m2 [35mwez@W [32m22:31 [35m~/src/mosh [32m[36m%(B[m [Kvvi innerout[2Csrc/util/swrite.cc | |
]0;vi src/util/swrite.cc -- wez@W:~/src/mosh[?1002h[?1049h[?1h=[1;25r[?12;25h[?12l[?25h[27m[m[37m[H[2J[?25l[25;1H"src/util/swrite.cc" 41L, 1283C[>c[1;1H[1m[36m/* | |
Mosh: the mobile shell | |
Copyright 2012 Keith Winstein | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | |
*/[m[37m | |
[1m[34m#include [m[37m[1m[35m<unistd.h>[m[37m | |
[1m[34m#include [m[37m[1m[35m<string.h>[m[37m | |
[1m[34m#include [m[37m[1m[35m<stdio.h>[m[37m | |
[1m[34m#include [m[37m[1m[35m"swrite.h"[m[37m | |
[1m[97m[104msrc/util/swrite.cc 47 0x2F 1,1 Top[1;1H[?12l[?25h[?25l[m[37m[25;70H~@k[1;1H[25;70H [2;1H[24;65H[1m[97m[104m32 0x20 2,[2;1H[?12l[?25h[?25l[m[37m[25;70H^D[2;1H[25;70H [2;5H[1;23r[1;1H[11M[1;25r[14;1H[1m[32mint[m[37m swrite( [1m[32mint[m[37m fd, [1m[32mconst[m[37m [1m[32mchar[m[37m *str, [1m[32mssize_t[m[37m len ) | |
{ | |
[1m[32mssize_t[m[37m total_bytes_written = [1m[35m0[m[37m; | |
[1m[32mssize_t[m[37m bytes_to_write = ( len >= [1m[35m0[m[37m ) ? len : ([1m[32mssize_t[m[37m) strlen( str ); | |
[1m[33mwhile[m[37m ( total_bytes_written < bytes_to_write ) { | |
[1m[32mssize_t[m[37m bytes_written = write( fd, str + total_bytes_written,[20;19H bytes_to_write - total_bytes_written ); | |
[1m[33mif[m[37m ( bytes_written <= [1m[35m0[m[37m ) {[22;6H perror( [1m[35m"write"[m[37m );[23;6H [1m[33mreturn[m[37m -[1m[35m1[m[37m;[25;1H[K[24;64H[1m[97m[104m71 0x47 13,5 61%[2;5H[?12l[?25h[?25l[m[37m[25;70H^D[2;5H[25;70H [6;1H[1;23r[1;1H[7M[1;25r[17;4H } [1m[33melse[m[37m {[18;6H total_bytes_written += bytes_written; | |
} | |
} | |
[1m[33mreturn[m[37m [1m[35m0[m[37m; | |
}[24;64H[1m[97m[104m0 0x0 24,0-1 Bot[6;1H[?12l[?25h[?25l[m[37m[25;70H^U[6;1H[25;70H [6;5H[1;23r[1;1H[11L[1;25r[1;1H[1m[36m (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
GNU General Public License for more details. | |
You should have received a copy of the GNU General Public License | |
along with this program. If not, see <http://www.gnu.org/licenses/>. | |
*/[m[37m[24;64H[1m[97m[104m71 0x47 13,5 38%[6;5H[?12l[?25h[?25l[m[37m[25;70H^U[6;5H[25;70H [2;5H[1;23r[1;1H[7L[1;25r[1;1H[1m[36m/* | |
Mosh: the mobile shell | |
Copyright 2012 Keith Winstein | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 3 of the License, or[m[37m[24;64H[1m[97m[104m 77 0x4D 2,5 Top[2;5H[?12l[?25h[?25l[m[37m[25;70H^U[2;5H[25;70H [1;1H[24;65H[1m[97m[104m47 0x2F 1,1 [1;1H[?12l[?25h[?25l[m[37m[25;70H^U[1;1H[25;70H [1;1H[?12l[?25h[?25l[25;70H:[1;1H[25;70H[K[25;1H:[?12l[?25hq[?25l[?12l[?25h [?25l[?1002l[25;1H[K[25;1H[?1l>[?12l[?25h[?1049l[1m[7m%[27m[1m[0m ]0;wez@W:~/src/mosh [0m[27m[24m[J[33m2 [35mwez@W [32m22:31 [35m~/src/mosh [32m[36m%(B[m [K | |
Script done on Tue Apr 10 22:32:00 2012 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Script started on Tue Apr 10 22:31:35 2012 | |
[1m[7m%[27m[1m[0m ]0;wez@W:~/src/mosh [0m[27m[24m[J[33m2 [35mwez@W [32m22:31 [35m~/src/mosh [32m[36m%(B[m [Kmmosh localhost | |
]0;mosh localhost -- wez@W:~/src/mosh | |
[?1h]0;\[?5l[1;25r[0m[H[2J[K[1;1H[K[K[?25l[2;1H[K[2;1H[K[K[3;1H[K[3;1H[K[K[4;1H[K[4;1H[K[K[5;1H[K[5;1H[K[K[6;1H[K[6;1H[K[K[7;1H[K[7;1H[K[K[8;1H[K[8;1H[K[K[9;1H[K[9;1H[K[K[10;1H[K[10;1H[K[K[11;1H[K[11;1H[K[K[12;1H[K[12;1H[K[K[13;1H[K[13;1H[K[K[14;1H[K[14;1H[K[K[15;1H[K[15;1H[K[K[16;1H[K[16;1H[K[K[17;1H[K[17;1H[K[K[18;1H[K[18;1H[K[K[19;1H[K[19;1H[K[K[20;1H[K[20;1H[K[K[21;1H[K[21;1H[K[K[22;1H[K[22;1H[K[K[23;1H[K[23;1H[K[K[24;1H[K[24;1H[K[K[25;1H[K[1;1H[?25h[0m]0;[mosh] \]0;[mosh] wez@W:~\[0;35mwez@W [0;32m22:31 [0;35m~ [0;36m%[0m script inner]0;[mosh] script inner -- wez@W:~\[?25l[2;1HScript started, output file is inner[3;1H[?25h]0;[mosh] wez@W:~\[0;33m2 [0;35mwez@W [0;32m22:31 [0;35m~ [0;36m%[0m cd src[0;1m/[0m[?25l[3;25H/m[?25hosh[0;1m/[0m]0;[mosh] wez@W:~/src/mosh\[?25l[3;30H [4;1H[0;33m2 [0;35mwez@W [0;32m22:31 [0;35m~/src/mosh [0;36m%[0m [?25hvi inner[?25l[4;31Hout[4;36H[?25h[?25l[4;31Hsrc/util/swrite.cc[?25h]0;[mosh] vi src/util/swrite.cc -- wez@W:~/src/mosh\[5;1H[1;25r[?25l[25;1H | |
[1;25r[25;1H[0;37m"src/util/swrite.cc" 41L, 1283C[1;1H[0;1;36m/*[2;1H Mosh: the mobile shell[3;1H Copyright 2012 Keith Winstein[5;1H This program is free software: you can redistribute it and/or modify[6;1H it under the terms of the GNU General Public License as published by[7;1H the Free Software Foundation, either version 3 of the License, or[8;1H (at your option) any later version.[10;1H This program is distributed in the hope that it will be useful,[11;1H but WITHOUT ANY WARRANTY; without even the implied warranty of[12;1H MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the[13;1H GNU General Public License for more details.[15;1H You should have received a copy of the GNU General Public License[16;1H along with this program. If not, see <http://www.gnu.org/licenses/>.[17;1H*/[19;1H[0;1;34m#include [0;1;35m<unistd.h>[20;1H[0;1;34m#include [0;1;35m<string.h>[21;1H[0;1;34m#include [0;1;35m<stdio.h>[23;1H[0;1;34m#include [0;1;35m"swrite.h"[24;1H[0;1;37msrc/util/swrite.cc 47 0x2F 1,1 Top[1;1H[?25h[?25l[24;65H32[24;71H0[24;74H2[25;70H[0;37m [2;1H[?25h[0;1;37m[0m[1;23r[?25l[23;1H | |
[1;25r[14;1H[0;1;32mint[0;37m swrite( [0;1;32mint[0;37m fd, [0;1;32mconst[0;37m [0;1;32mchar[0;37m *str, [0;1;32mssize_t[0;37m len )[15;1H{[16;1H [0;1;32mssize_t[0;37m total_bytes_written = [0;1;35m0[0;37m;[17;1H [0;1;32mssize_t[0;37m bytes_to_write = ( len >= [0;1;35m0[0;37m ) ? len : ([0;1;32mssize_t[0;37m) strlen( str );[18;1H [0;1;33mwhile[0;37m ( total_bytes_written < bytes_to_write ) {[19;1H [0;1;32mssize_t[0;37m bytes_written = write( fd, str + total_bytes_written,[20;19H bytes_to_write - total_bytes_written );[21;1H [0;1;33mif[0;37m ( bytes_written <= [0;1;35m0[0;37m ) {[22;6H perror( [0;1;35m"write"[0;37m );[23;6H [0;1;33mreturn[0;37m -[0;1;35m1[0;37m;[24;64H[0;1;37m71 0x47 [24;73H13[24;76H5[24;78H61%[25;1H[0m[K[2;5H[?25h[0;1;37m[0m[1;23r[?25l[23;1H | |
[1;25r[17;4H[0;37m } [0;1;33melse[0;37m {[18;6H total_bytes_written += bytes_written;[19;1H }[20;1H }[22;1H [0;1;33mreturn[0;37m [0;1;35m0[0;37m;[23;1H}[24;64H[0;1;37m0 0x0 24,0-1[24;78HBot[25;70H[0;37m [6;1H[?25h[0;1;37m[?25l[1;1H[0;1;36m (at your option) any later version.[2;1H[0m[K[3;1H[0;1;36m This program is distributed in the hope that it will be useful,[4;1H but WITHOUT ANY WARRANTY; without even the implied warranty of[5;1H MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the[6;1H GNU General Public License for more details.[7;1H[0m[K[8;1H[0;1;36m You should have received a copy of the GNU General Public License[9;1H along with this program. If not, see <http://www.gnu.org/licenses/>.[10;1H*/[0m[K[11;1H[K[12;1H[0;1;34m#include [0;1;35m<unistd.h>[0m[K[13;1H[0;1;34m#include [0;1;35m<string.h>[0m[K[14;1H[0;1;34m#include [0;1;35m<stdio.h>[0m[K[15;6H[K[16;1H[0;1;34m#include [0;1;35m"swrite.h"[17;4H[0m[K[18;1H[0;1;32mint[0;37m swri[18;10He( [0;1;32mint[0;37m fd, [0;1;32mconst[18;27Hchar[0;37m *str, [0;1;32mssize_t[0;37m len )[19;1H{[0m[K[20;3H[0;1;32mssize_t[0;37m total_bytes_written = [0;1;35m0[0;37m;[21;1H [0;1;32mssize_t[0;37m bytes_to_write = ( len >= [0;1;35m0[0;37m ) ? len : ([0;1;32mssize_t[0;37m) strlen( str );[22;3H[0;1;33mwhile[0;37m ( total_bytes_written < bytes_to_write ) {[23;1H [0;1;32mssize_t[0;37m bytes_written = write( fd, str + total_bytes_written,[24;64H[0;1;37m71 0x47 13,5[24;78H38%[6;5H[?25h[?25l[1;1H[0;1;36m/*[0m[K[2;1H[0;1;36m Mosh: the mobile shell[3;5HCopyright 2012 Ke[3;23Hth Winstein[0m[K[4;1H[K[5;5H[0;1;36mThis program is[5;21Hf[5;23Hee software:[5;36Hyou can redistribute it and/or modify[6;5Hit under the terms[6;24Hof the GNU General Pub[6;47Hic License as published by[7;1H the Free Software Foundation, either version 3 of the License, or[8;5H(at[8;9Hyour option) any later[8;32Hversi[8;38Hn.[0m[K[9;1H[K[10;1H[0;1;36m This program is distributed in the hope that it will be useful,[11;1H but WITHOUT ANY WARRANTY; without even the implied warranty of[12;1H MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the[13;1H GNU General Public License for more details.[14;1H[0m[K[15;1H[0;1;36m You should have received a copy of the GNU General Public License[16;1H along with this program. If not, see <http://www.gnu.org/licenses/>.[17;1H*/[18;1H[0m[K[19;1H[0;1;34m#include [0;1;35m<unistd.h>[20;1H[0;1;34m#include [0;1;35m<string.h>[0m[K[21;1H[0;1;34m#include [0;1;35m<stdio.h>[0m[K[22;1H[K[23;1H[0;1;34m#include [0;1;35m"swrite.h"[0m[K[24;64H[0;1;37m 77 0x4D[24;73H 2[24;78HTop[2;5H[?25h[?25l[24;65H4[24;70H2F[24;74H1[24;76H1[1;1H[?25h[0;37m[?25l[25;1H:[25;70H[0m[K[25;2H[?25h[0;37mq]0;[mosh] wez@W:~/src/mosh\[?25l[25;1H[0;33m2 [0;35mwez@W [0;32m22:31 [0;35m~/src/mosh [0;36m%[0m [?25h]0;[mosh] wez@W:~\[1;25r[?25l[25;1H | |
[1;25r[24;1HScript done, output file is inner[25;1H[0;35mwez@W [0;32m22:32 [0;35m~ [0;36m%[0m [?25h[1;25r[?25l[25;1H | |
[1;25r[25;1H[?25h]0;wez@W:~\[?1l[0m | |
[mosh is exiting.] | |
[1m[7m%[27m[1m[0m ]0;wez@W:~/src/mosh [0m[27m[24m[J[33m2 [35mwez@W [32m22:32 [35m~/src/mosh [32m[36m%(B[m [K | |
Script done on Tue Apr 10 22:32:02 2012 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment