[haiku-bugs] Re: [Haiku] #4361: more command don't work as expected

  • From: "mmu_man" <trac@xxxxxxxxxxxx>
  • Date: Fri, 15 Aug 2014 12:25:16 -0000

#4361: more command don't work as expected
-----------------------------------------------+---------------------------
   Reporter:  phoudoin                         |      Owner:  axeld
       Type:  bug                              |     Status:  new
   Priority:  normal                           |  Milestone:  R1
  Component:  Applications/Command Line Tools  |    Version:  R1/pre-alpha1
 Resolution:                                   |   Keywords:
 Blocked By:                                   |   Blocking:
Has a Patch:  1                                |   Platform:  x86
-----------------------------------------------+---------------------------

Comment (by mmu_man):

 For the record, here is what both give in Debugger:
 {{{
 ~> hd more.out.txt
 00000000   1b 5b 3f 31 30 34 39 68  1b 5b 3f 31 68 1b 3d 0a
 .[?1049h.[?1h.=.
 00000010   75 73 65 72 3a 78 3a 30  3a 30 3a 59 6f 75 72 73
 user:x:0:0:Yours
 00000020   65 6c 66 3a 2f 62 6f 6f  74 2f 68 6f 6d 65 3a 2f
 elf:/boot/home:/
 00000030   62 69 6e 2f 62 61 73 68  0a 0a 1b 5b 4b 1b 5b 3f
 bin/bash...[K.[?
 00000040   31 6c 1b 3e 1b 5b 3f 31  30 34 39 6c 20 20 20 20
 1l.>.[?1049l....

 ~> hd less.out.txt
 00000000   1b 5b 3f 31 30 34 39 68  1b 5b 3f 31 68 1b 3d 0a
 .[?1049h.[?1h.=.
 00000010   75 73 65 72 3a 78 3a 30  3a 30 3a 59 6f 75 72 73
 user:x:0:0:Yours
 00000020   65 6c 66 3a 2f 62 6f 6f  74 2f 68 6f 6d 65 3a 2f
 elf:/boot/home:/
 00000030   62 69 6e 2f 62 61 73 68  0a 1b 5b 37 6d 2f 65 74
 bin/bash..[7m/et
 00000040   63 2f 70 61 73 73 77 64  20 28 45 4e 44 29 1b 5b
 c/passwd.(END).[
 00000050   32 37 6d 1b 5b 4b 0a 0a  0a 0a 1b 5b 4b 1b 5b 3f
 27m.[K.....[K.[?
 00000060   31 6c 1b 3e 1b 5b 3f 31  30 34 39 6c 0a 0a 20 20
 1l.>.[?1049l....
 }}}

--
Ticket URL: <https://dev.haiku-os.org/ticket/4361#comment:18>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: