Loading

Paste #ppl382bpb

  1. ;Category: Linux Console Private Terminal Codes
  2. ;==============================================
  3. ;some nonstandard shit from linux console terminal
  4. ; those and many others linux codes clashes ecma-35 and ecma-48 heavily
  5. ; we could play music with that, for one
  6.  
  7. %macro  LINUXCONSOLE_UnderlineColor 1.list_terminal_codes
  8. ;       ESC [ 1 ; n ]       Set color n as the underline color
  9. %assign %%compute_attribute %1
  10. %defstr %%attribute %%compute_attribute
  11.     db  Esc,'[',1,';',%%attribute,']'
  12. %endmacro
  13.  
  14. %macro  LINUXCONSOLE_DimColor 1.list_terminal_codes
  15. ;       ESC [ 2 ; n ]       Set color n as the dim color
  16. %assign %%compute_attribute %1
  17. %defstr %%attribute %%compute_attribute
  18.     db  Esc,'[',2,';',%%attribute,']'
  19. %endmacro
  20.  
  21. %macro  LINUXCONSOLE_SetDefaultColorToCurrent 0.list_terminal_codes
  22. ;       ESC [ 8 ]           Make the current color pair the default attributes.
  23.     db  Esc,'[','8',']'
  24. %endmacro
  25.  
  26. ;       ESC [ 9 ; n ]       Set screen blank timeout to n minutes.
  27. ;       ESC [ 10 ; n ]      Set bell frequency in Hz.
  28. ;       ESC [ 11 ; n ]      Set bell duration in msec.
  29. ;       ESC [ 12 ; n ]      Bring specified console to the front.
  30. ;       ESC [ 13 ]          Unblank the screen.
  31. ;       ESC [ 14 ; n ]      Set the VESA powerdown interval in minutes.
  32.  
  33.