-
Notifications
You must be signed in to change notification settings - Fork 0
Duncan
Your first task will be to implement the window manager. The window manager is a system process which manages all the windows for the system. Since the screen is so small (96x64 pixels!), a window takes up the entire screen i.e. only one window is visible at a time.
All programs running on CatOS will be console programs i.e. no graphics (text based). Thus, a window will display the console of a program. Since this only consists of text, the actual pixel data (double buffer) doesn't need to be stored. Instead, only the text in the console needs to be stored. To fill the screen, the dimensions of the console are 24x9 characters.
Instead of wasting 768 bytes to store the entire screen, a terminal window simply stores the text in the terminal. The screen is big enough to hold a console which is 24x9 characters = 216 bytes. Clearly, however, a console
When a process is first created, it will request one of the following:
- No window - the program will run in the background
- A