HACKING (screen-4.8.0) | : | HACKING (screen-4.9.0) | ||
---|---|---|---|---|
WIP notes on hacking the Screen source. | WIP notes on hacking the Screen source. | |||
* Screen commands are handled by the DoAction function in process.c. | * Screen commands are handled by the DoAction function in process.c. | |||
The local variable nr is set to an integer value representing the | The local variable nr is set to an integer value representing the | |||
command to be evaluated; for every command `foo', there is an | command to be evaluated; for every command `foo', there is an | |||
integer value RC_FOO for use as nr's value to represent it. Find | integer value RC_FOO for use as nr's value to represent it. Find | |||
the matching case label to follow procesing of the command. | the matching case label to follow processing of the command. | |||
The RC_FOO values are defined in comm.h, which is automatically | The RC_FOO values are defined in comm.h, which is automatically | |||
generated by comm.sh, based on the names of the commands | generated by comm.sh, based on the names of the commands | |||
themselves (found in comm.c). | themselves (found in comm.c). | |||
* The current display is held in the global variable "display". | * The current display is held in the global variable "display". | |||
Variable names like D_foo are shorthands for display->d_foo (where d_foo | Variable names like D_foo are shorthands for display->d_foo (where d_foo | |||
is a member of "struct display"). | is a member of "struct display"). | |||
* Names like D_IS, D_TI, D_SG usually refer to the values of various | * Names like D_IS, D_TI, D_SG usually refer to the values of various | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |