Caruh
Caruh - the Multitasking-Manager for FutureOS
Contents
- 1 I. Overview
- 2 II. Using the Tasker Caruh
- 2.1 II.1. Submenu File
- 2.1.1 Load <T>ask - Hotkey: t or T - To load and start a Task
- 2.1.2 Save Tas<k> - Hotkey: k or K - To save a Task
- 2.1.3 Load all - Hotkey: a or A - Loads and starts all tagged files as Tasks
- 2.1.4 Save tabl - Hotkey: s or S - Saves 16 KB Task-Table (--> for debugging)
- 2.1.5 Read DIRs - Hotkey: r or R - Reads the DIRs of all tagged drives
- 2.1.6 Close - Hotkey: c or C - End all Tasks. Quit this application
- 2.1.7 Version - Hotkey: v or V - Shows version number of Caruh
- 2.1.8 Quit - Hotkey: q or Q - End all Tasks. Quit this application
- 2.2 Submenu Process
- 2.3 Submenu Options
- 2.1 II.1. Submenu File
I. Overview
I.1. General information
The 'Caruh' application is part of the FutureOS operating system. Caruh is a tasker, that's a multitasking manager. Or rather, a program to run several applications (tasks) at the same time on the CPC. The individual 'Tasks' can behave cooperatively.
What properties does Caruh have or do the Tasks have?
- The Caruh application is located in the lower RAM between &0000 and &37FF. The area from &4000 to &7FFF is used in addition (for buffers, tables)
- Caruh works in screen MODE 2, in the 80 character x 25 line format
- CBM is used as the user interface: So Caruh can be used like to operate most other FutureOS applications.
- In addition to the pull-down menus at the top of the screen, there is another Task-Bar at the bottom of the screen. The names of four tasks are displayed there in the middle. With the arrows all the way left and right you can scroll horizontally through the names of the tasks
- The surface of Caruh offers functions to load, save, terminate or change the priority of one or more tasks
- The maximum number of different tasks is 255 (with a 4 MB RAM expansion)
- A task can reach a maximum size of 15.75 KB
- The tasks are managed dynamically. Task numbers can therefore change. For example, when a task is deleted, the higher task numbers are adjusted
- Each task has its own 16 KB expansion RAM (E-RAM). These E-RAMs are banked in between &4000 and &7FFF. Accordingly a task is always assembled at the start address &4000.
I.2. Types of Tasks
There are foreground and background tasks. A background task can be switched to be a foreground task by the user - if the task allows this (is capable of).
Foreground Tasks
A foreground task is able to take over the entire screen and to write on it. In addition he can also scan the keyboard.
He has to respond to the 'ESCape' key. In case the key was pressed then the task must return control back to Caruh.
Every foreground task is always also a background task (as long as it has not taken over the output to the screen).
Only the user can switch a background task to the foreground! There can only be one foreground task at a time!
Background Tasks
A background task is only allowed to write on the common screen. There he can reserve screen areas.
Summary
1. A task can be a (pure) background task
- He may reserve parts of the general screen and write on it
- He is not allowed to take over the entire screen
- It's identified by a cleared bit #0 at address &7FF8 (TCON8) in its E-RAM
2. A task can be switched to the 'foreground' by Caruh.
- There is always only one foreground task
- When starting Caruh, Caruh itself is the foreground task
- If another task becomes the 'Foreground Task', it's allowed to use the entire screen area. And the keyboard and the joysticks.
- However, he must also be able to give control back to Caruh at 'ESC'
- It's identified by a set bit 0 at address &7FF8 (TCON8) in E-RAM
Attention: To be able to switch a task to the foreground, bit 1 at address &7FF8 (TCON8) must be set. This is done by the task itself.
Pressing the 'ESCape' key must switch the task back to the background! Caruh itself checks for ESC. But the task must / should do that too.
II. Using the Tasker Caruh
Load <T>ask - Hotkey: t or T - To load and start a Task
This function is to load a Task of a maximum file size of 16 KB. The Task will be started right away.
Save Tas<k> - Hotkey: k or K - To save a Task
This function provides a way to save a 16 KB sized memory dump of a Task to any kind of media. Saving works in cooperation with the Task, so the Task can get prepared to be saved. A saved Task can be used to continue it later or on another computer (also it can be used for debugging purposes).
Load all - Hotkey: a or A - Loads and starts all tagged files as Tasks
This function can load a bunch of files as Tasks. Usually you would first mark all the Task-files in the FutureOS Turbo Destiop you would like to use. Then use this function to load and start them all. This way you can start up with a selection of your favorite Tasks at once.
Save tabl - Hotkey: s or S - Saves 16 KB Task-Table (--> for debugging)
This function actually saves 16 KB of the main RAM from &4000 to &7FFF. This area contains Task variables, the Task Table and the VRAM Table. Yes, this is for debugging purposes :-)
Read DIRs - Hotkey: r or R - Reads the DIRs of all tagged drives
Here you can select the drives / media / devices you want to use and load their DIRectories. This will make the devices accessible for Load and Save operations
Close - Hotkey: c or C - End all Tasks. Quit this application
This function will end and clear all Tasks, release the previously used E-RAM of the Tasks and end the Application Caruh.
Version - Hotkey: v or V - Shows version number of Caruh
This one will display the name of the application Caruh, its current version number and the date of the last major change of code.
Quit - Hotkey: q or Q - End all Tasks. Quit this application
See 'Close' above
Clear - Hotkey: l or L - Clear task = '<E>nd Task' (see below)
This function will end and clear a Task. The E-RAM of the Task will be released
Go To - Hotkey: o or L - Go To a Task = 'Switch <t>o' (see below)
This function will switch a Task to the Foreground, if the Task is able to do.
Call OS - Hotkey: a or A - Call the Desktop, return with the OK icon
Here the user can call the Turbo Desktop of FutureOS temporarily. In the Desktop you can f.e. tag some files or what every you want. But you must use the 'OK' Icon to return to the Task Manager Caruh.
Mode - Hotkey: m or M - Select the screen MODE 0-3 for Tasks
The user can select the screen mode for Tasks here. You can select MODEs 0-3. Yes, also MODE 3, which probably will not be used that often. However, the interface of Caruh will remain in MODE 2.
Colour - Hotkey: c or C - Select color for Pen, Paper or Border
The colors for BORDER, PAPER and PENs 0-15 can be selected here. This is valid for Caruh and all working Tasks.
Format - Hotkey: f or F - Select Task screen format (80x25, 64x32)
The screen format can be selected here for the Tasks. But it will not change the appearance of Caruh's interface itself.
Language - Hotkey: l or L - Select your language for Tasks
The language of FutureOS can be adjusted here. The selected language can be read from the configuration variable KF_CPC (at &B976) in bits 5, 4 and 3:
5,4,3 | 000 | OS language set to German |
5,4,3 | 001 | OS language set to French |
5,4,3 | 010 | OS language set to Englisch |
5,4,3 | 011 | OS language set to Greek |
5,4,3 | 100 | OS language set to Spanish |
5,4,3 | 101 | OS language set to Dutch |
Any Task can read which language was selected. But Caruh itself will not change its language texts, because this would waste too much main memory. Caruh can be obtained in any (of the above) languages. See downloads.