{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

project2description

project2description - background The default value is...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
CSE 321 Project 2 (Fall 2011) Objectives Once you have completed this project, you will know how to: 1. Handle command-line arguments. 2. Parse command-line options 3. Use memory-related function calls, including memset and free 4. Use bit-wise operators 5. Set the background and foreground colors of your terminal Requirements The user should be able to input the command fb with the following options: fb [-w width ] [-h height ] [-b color ] [-f color ] [-e effect ] string Options [ -w width ] Specify the width of the frame buffer. That is, the number of characters stored in each row of the frame buffer. The minimum value for width is 1 and the maximum is 8. The default value is 5. [ -h height ] Specify the height of the frame buffer. That is, the number of characters stored in each column of the frame buffer. The minimum value for height is 1 and the maximum is 8. The default value is 5. [ -b color ] Specify the color of the background of the frame buffer: the color of the terminal
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: background. The default value is white . [-f color ] Specify the color of the foreground of the frame buffer: the color of the characters. color can take any of the following values: black, red, green, yellow, blue, magenta, cyan, white . The default value is black . [-e effect ] Specify the effect of the characters. effect can take any of the following values: normal, underscore . The default value is normal . string String to be stored and displayed in the frame buffer. This argument is required. For instance, fb –h 9 –w 6 –b yellow –f black –e underscore hello Create a frame buffer with 9 rows and 6 columns. The color of the character is black and the color of the background is yellow. The format of the character is underscore. For more information on color codes, visit http://ascii-table.com/ansi-escape-sequences.php ....
View Full Document

{[ snackBarMessage ]}