User Tools

Site Tools


haas:spring2016:cprog:projects:cbf0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2016:cprog:projects:cbf0 [2016/03/22 17:41] – [Sample output] wedgehaas:spring2016:cprog:projects:cbf0 [2016/03/22 19:56] (current) – [Unthrottled display (512 bytes)] wedge
Line 57: Line 57:
       * error message should be of the form: **Error: Terminal height is less than 20 lines!**       * error message should be of the form: **Error: Terminal height is less than 20 lines!**
       * Unlike the width, the height can impact program output (taller terminals, if not otherwise throttled by a second command-line argument, can auto-expand if there is more room and data to display).       * Unlike the width, the height can impact program output (taller terminals, if not otherwise throttled by a second command-line argument, can auto-expand if there is more room and data to display).
-  * If a second command-line argument exists, assume it is a sizing throttle (controlling the number of lines your program will display). If no argument is given (or that argument is a **0**), assume autosize (use the detected height to be your maximum in your calculations).+  * The second command-line argument is a sizing throttle (controlling the number of lines your program will display). If a  **0** is given, assume autosize (use the detected height to be your maximum in your calculations).
   * Display an ASCII header identifying the various fields (offset, hex, ascii), surrounded by dashed lines, running 79 characters in width. See below for more details.   * Display an ASCII header identifying the various fields (offset, hex, ascii), surrounded by dashed lines, running 79 characters in width. See below for more details.
   * Each row after the header will display:   * Each row after the header will display:
Line 110: Line 110:
  
 <cli> <cli>
-lab46:~/src/cprog$ ./hexview win7.mbr+lab46:~/src/cprog$ ./hexview win7.mbr 0
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
 offset      0  1  2  3    5  6  7    9  a  b    d  e  f  ascii offset      0  1  2  3    5  6  7    9  a  b    d  e  f  ascii
Line 217: Line 217:
  
 <cli> <cli>
-lab46:~/src/cprog$ ./hexview win7.mbr 0x1be 1 0x1c2 1 0x1c6 4 0x1ca 4 0x1fe 2+lab46:~/src/cprog$ ./hexview win7.mbr 0x1be 1 0x1c2 1 0x1c6 4 0x1ca 4 0x1fe 2
 </cli> </cli>
  
haas/spring2016/cprog/projects/cbf0.1458668482.txt.gz · Last modified: 2016/03/22 17:41 by wedge