cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 07:48 PM |
| Default size is 80x25, but 80x25 what? It's not inches or centimeters |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
hotsotse
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 267 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:04 PM |
| is that like screen width/height = 1 pixel? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:04 PM |
= 1 screen pixel*
80x25 pixels is tiny |
|
|
| Report Abuse |
|
|
hotsotse
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 267 |
|
|
| 12 Feb 2014 08:06 PM |
| Control panel > Adjust screen resolution to find out how many pixels on your screen. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:08 PM |
| So if my screen size is: 1280x1024, would 1 screen pixel = (1280/1024) pixels? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:12 PM |
Never mind, the width/height is relative to the font size. So it's 80 * 8, 25 * 12 (if I'm correct) |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2014 08:17 PM |
It's characters. More specifically, it's a monospace font (all characters fit into the same box size) which at standard values is 8 pixels wide and 12 pixels tall, with a 1 pixel border on the right side of each character block. This makes for a total of 720 pixels wide.
The command prompt size (80 columns by 25 rows) is a throwback to the original computer outputs, which were called 80 character displays and had (surprise!) 80 character widths. Every single computer (up until GUIs started appearing with their different resolutions and screwed everything up) on the planet would use this size of a display, sometimes with different heights, so you could plan for the width of these displays.
If you ever use very old applications that have to be worked on through the command prompt you'll find that they make boxes and tables and stuff out of various characters. This design is hard-coded, each box is made with a specific number of characters because the display will (should) always be 80 characters wide.
Of course, you can right-click the title bar of the command prompt and change all that, but then you'd be breaking from the history of the whole thing. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:28 PM |
| Yes, my textarea is perfect |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:39 PM |
| Is it also 1 pixel for the vertical border? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:45 PM |
| I don't think it is 1, it doesn't seem perfect, I got 400 and it seemed perfect (trial and error) so 1.333... vertical border? |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 12 Feb 2014 08:48 PM |
| (since 25 rows and 12 pixels tall = 300, and after trial and error, I got 400) |
|
|
| Report Abuse |
|
|
|
| 12 Feb 2014 09:14 PM |
You're right! I'm mixing up my raster fonts with fixed-width image fonts from long ago. There is no pixel space between characters, that pixel is actually factored into the characters themselves. Thus, 8 pixels per character * 80 characters = 640 pixels wide. This rises to the 640x480 resolution size on the original screens.
Note that vertical space was variable. 25 characters (300 pixels) is the default for the command prompt but other heights were present. |
|
|
| Report Abuse |
|
|
hotsotse
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 267 |
|
| |
|