Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Is it possible to prevent escape key in console?

From: sqlab:gmx at: 9-Jan-2009 13:29

That's possible, the second at least under Windows, I had never the need to do it under Linux. Şemseddin Moldibi [ Bircom ] wrote:
> Is it possible to prevent user to press escape key to stop the program > in console? >
system/console/break: false
> For example my program gives some debug output to console window, but > user is able to break the program by pressing ecs key. > > Another question, is it possible to change console window title in pro > version of command/view? >
win-lib: make object! [ user-lib: load/library %user32.dll SetWindowText: make routine! [ handle [integer!] Title [string!] return: [integer!] ] user-lib "SetWindowTextA" ] WindowTitle: func [ Title [string!] ] [ win-lib/SetWindowText get-modes system/ports/system 'window Title free win-lib/user-lib unset 'win-lib unset 'WindowTitle ]