There is nothing before "W" to make it a newline? Maybe your mail client strips it out.
Although I guess your problem is to do with termios, try comparing the output of stty -a between working and nonworking shells. On Mon, May 07, 2012 at 09:37:40AM +0530, Sinbad wrote: > On Mon, May 7, 2012 at 2:25 AM, Nicholas Marriott < > nicholas.marri...@gmail.com> wrote: > > > This is not the full tmux info output, but it doesn't matter. Without > > any script output we can't see what your program is doing anyway. > > > > Hi Nicholas, > > script output: > > Script started on Sun 06 May 2012 08:49:22 PM PDT > sinbad@bara^[[0;36m[<>]# ^[[0mdevice.mcn ^M > spawn telnet device.mcn^M^M^M > Trying 10.12.1.30...^M^M^M > Connected to device.mcn.^M^M^M > Escape character is '^]'.^M^M^M > login: sinbad^M^M > Password: ^M^M > [local]device.mcn>ena^M^M > Password: ^M > [local]device.mcn#display entry^M > Flags: R - Remote state W - Wildcard state^M > ^M > centry Identifier State Flag Outlet^M > 5.5.5.5 5.5.5.5:0 run W l^M > 7.7.7.7 7.7.7.7:0 run W r^M > [local]device.mcn#exit > Connection closed by foreign host.^M^M > sinbad@bara^[[0;36m[<>]# ^[[0mexit^M > exit^M > > Script done on Sun 06 May 2012 08:49:36 PM PDT > > The above is the script output, from tmux i'm connecting to another > device through telnet, In the above, the problem output is > > [local]device.mcn#display entry^M > Flags: U - Unknown state W - Wildcard state^M > ^M > centry Identifier State Flag Outlet^M > > It should have been as follows, w - wildcard state should come in a newline. > it works fine if i connect from "csh", as i said before, i'm seeing the > problem > even if i don't use tmux and telnet it from a bash shell rather than "csh", > but seeking help from you experts to solve it. > > [local]device.mcn#display entry > Flags: U - Unknown state > W - Wildcard state > > centry Identifier State Flag Outlet > > > complete tmux info output: > > sinbad@login# tmux info > tmux 1.6, pid 4226, started Mon Apr 30 01:39:42 2012 > socket path /tmp/tmux-95838/default, debug level 0 > system is Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 > configuration file is /home/sinbad/.tmux.conf > protocol version is 6 > > Clients: > 0: /dev/pts/75 (10, 12): new [207x60 xterm-256color bs=177] > [flags=0x1/0x38, references=0] > > Sessions: [5/10] > 0: new: 9 windows (created Mon Apr 30 01:39:42 > 2012) [207x59] [flags=0x0] > 1: bash [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/47 11992 17 3957/3984, 1524720 bytes; > UTF-8 0/3984, 0 bytes > 2: bash [207x59] [flags=0x8, references=1, last > layout=0] > 0: /dev/pts/22 4256 14 3947/4002, 2094075 bytes; > UTF-8 0/4002, 0 bytes > 3: bash [207x59] [flags=0x8, references=1, last > layout=2] > 0: /dev/pts/25 4284 15 3838/3839, 1255295 bytes; > UTF-8 0/3839, 0 bytes > 4: bash [207x59] [flags=0x8, references=1, last > layout=0] > 0: /dev/pts/10 13012 13 7400/7469, 2508660 bytes; > UTF-8 0/7469, 0 bytes > 5: device [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/65 14545 8 7364/7475, 2313155 bytes; > UTF-8 0/7475, 0 bytes > 6: bash [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/72 14704 9 5261/5294, 2184180 bytes; > UTF-8 0/5294, 0 bytes > 7: bash [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/105 9037 19 513/588, 82120 bytes; > UTF-8 0/588, 0 bytes > 8: bash [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/19 18622 20 7661/7670, 4327630 bytes; > UTF-8 0/7670, 0 bytes > 9: bash [207x59] [flags=0x8, references=1, last > layout=-1] > 0: /dev/pts/51 15181 21 3887/3891, 1716065 bytes; > UTF-8 10/3891, 5430 bytes > Terminals: > xterm-256color [references=1, flags=0x1]: > 1: acsc: (string) > ``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~ > 0: AX: [missing] > 2: bel: (string) \007 > 3: blink: (string) \033[5m > 4: bold: (string) \033[1m > 5: Cc: (string) \033]12;%p1%s\007 > 6: civis: (string) \033[?25l > 7: clear: (string) \033[H\033[2J > 8: cnorm: (string) \033[?12l\033[?25h > 9: colors: (number) 256 > 10: Cr: (string) \033]112\007 > 11: Cs: (string) \033[%p1%d q > 12: csr: (string) \033[%i%p1%d;%p2%dr > 13: Csr: (string) \033[2 q > 14: cub: (string) \033[%p1%dD > 15: cub1: (string) \010 > 16: cud: (string) \033[%p1%dB > 17: cud1: (string) \012 > 18: cuf: (string) \033[%p1%dC > 19: cuf1: (string) \033[C > 20: cup: (string) \033[%i%p1%d;%p2%dH > 21: cuu: (string) \033[%p1%dA > 22: cuu1: (string) \033[A > 23: dch: (string) \033[%p1%dP > 24: dch1: (string) \033[P > 25: dim: [missing] > 26: dl: (string) \033[%p1%dM > 27: dl1: (string) \033[M > 28: E3: [missing] > 29: el: (string) \033[K > 30: el1: (string) \033[1K > 31: enacs: (string) \033(B\033)0 > 32: fsl: (string) \007 > 33: home: (string) \033[H > 34: hpa: (string) \033[%i%p1%dG > 35: ich: (string) \033[%p1%d@ > 36: ich1: [missing] > 37: il: (string) \033[%p1%dL > 38: il1: (string) \033[L > 39: invis: (string) \033[8m > 40: is1: [missing] > 41: is2: (string) \033[!p\033[?3;4l\033[4l\033> > 42: is3: [missing] > 43: kcbt: (string) \033[Z > 44: kcub1: (string) \033OD > 45: kcud1: (string) \033OB > 46: kcuf1: (string) \033OC > 47: kcuu1: (string) \033OA > 48: kDC: (string) \033[3;2~ > 49: kDC3: [missing] > 50: kDC4: [missing] > 51: kDC5: [missing] > 52: kDC6: [missing] > 53: kDC7: [missing] > 54: kdch1: (string) \033[3~ > 55: kDN: [missing] > 56: kDN3: [missing] > 57: kDN4: [missing] > 58: kDN5: [missing] > 59: kDN6: [missing] > 60: kDN7: [missing] > 61: kend: (string) \033OF > 62: kEND: (string) \033[1;2F > 63: kEND3: [missing] > 64: kEND4: [missing] > 65: kEND5: [missing] > 66: kEND6: [missing] > 67: kEND7: [missing] > 68: kf1: (string) \033OP > 69: kf10: (string) \033[21~ > 70: kf11: (string) \033[23~ > 71: kf12: (string) \033[24~ > 72: kf13: (string) \033O2P > 73: kf14: (string) \033O2Q > 74: kf15: (string) \033O2R > 75: kf16: (string) \033O2S > 76: kf17: (string) \033[15;2~ > 77: kf18: (string) \033[17;2~ > 78: kf19: (string) \033[18;2~ > 79: kf2: (string) \033OQ > 80: kf20: (string) \033[19;2~ > 81: kf3: (string) \033OR > 82: kf4: (string) \033OS > 83: kf5: (string) \033[15~ > 84: kf6: (string) \033[17~ > 85: kf7: (string) \033[18~ > 86: kf8: (string) \033[19~ > 87: kf9: (string) \033[20~ > 88: kHOM: (string) \033[1;2H > 89: kHOM3: [missing] > 90: kHOM4: [missing] > 91: kHOM5: [missing] > 92: kHOM6: [missing] > 93: kHOM7: [missing] > 94: khome: (string) \033OH > 95: kIC: (string) \033[2;2~ > 96: kIC3: [missing] > 97: kIC4: [missing] > 98: kIC5: [missing] > 99: kIC6: [missing] > 100: kIC7: [missing] > 101: kich1: (string) \033[2~ > 102: kLFT: (string) \033[1;2D > 103: kLFT3: [missing] > 104: kLFT4: [missing] > 105: kLFT5: [missing] > 106: kLFT6: [missing] > 107: kLFT7: [missing] > 108: kmous: (string) \033[M > 109: knp: (string) \033[6~ > 110: kNXT: (string) \033[6;2~ > 111: kNXT3: [missing] > 112: kNXT4: [missing] > 113: kNXT5: [missing] > 114: kNXT6: [missing] > 115: kNXT7: [missing] > 116: kpp: (string) \033[5~ > 117: kPRV: (string) \033[5;2~ > 118: kPRV3: [missing] > 119: kPRV4: [missing] > 120: kPRV5: [missing] > 121: kPRV6: [missing] > 122: kPRV7: [missing] > 123: kRIT: (string) \033[1;2C > 124: kRIT3: [missing] > 125: kRIT4: [missing] > 126: kRIT5: [missing] > 127: kRIT6: [missing] > 128: kRIT7: [missing] > 129: kUP: [missing] > 130: kUP3: [missing] > 131: kUP4: [missing] > 132: kUP5: [missing] > 133: kUP6: [missing] > 134: kUP7: [missing] > 135: Ms: (string) \033]52;%p1%s;%p2%s\007 > 136: op: (string) \033[39;49m > 137: rev: (string) \033[7m > 138: ri: (string) \033M > 139: rmacs: (string) \017 > 140: rmcup: (string) \033[?1049l > 141: rmir: (string) \033[4l > 142: rmkx: (string) \033[?1l\033> > 143: setab: (string) \033[48;5;%p1%dm > 144: setaf: (string) \033[38;5;%p1%dm > 145: sgr0: (string) \033[m\017 > 146: sitm: [missing] > 147: smacs: (string) \016 > 148: smcup: (string) \033[?1049h > 149: smir: (string) \033[4h > 150: smkx: (string) \033[?1h\033= > 151: smso: (string) \033[7m > 152: smul: (string) \033[4m > 153: tsl: (string) \033]0; > 154: vpa: (string) \033[%i%p1%dd > 155: xenl: (flag) true > 156: XT: (flag) true > > Jobs: ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users