Thank you, I know this way but I actualy wanted to ask is there a way =
"more legally", I mean an option or config parameter etc. Thank you fort =
he reply.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf =
Of sqlab
Sent: Friday, January 09, 2009 2:30 PM
To: [email protected]
Subject: [REBOL] Re: Is it possible to prevent escape key in console?


That's possible,
the second at least under Windows, I had never the need to do it under=20
Linux.

=DEemseddin Moldibi [ Bircom ] wrote:
> Is it possible to prevent user to press escape key to stop the program =
=3D
> in console?
>  =20
system/console/break: false
> For example my program gives some debug output to console window, but =
=3D
> user is able to break the program by pressing ecs key.
>
> Another question, is it possible to change console window title in pro =
=3D
> version of command/view?
>  =20
win-lib: make object! [
   =20
    user-lib: load/library %user32.dll

    SetWindowText: make routine! [
        handle            [integer!]
        Title                [string!]
        return:            [integer!]
    ] user-lib "SetWindowTextA"
   =20
]
   =20
WindowTitle: func [
    Title [string!]
] [
    win-lib/SetWindowText get-modes system/ports/system 'window Title
    free win-lib/user-lib
    unset 'win-lib
    unset 'WindowTitle
]
> Sorry if those are stupid questions :)
>
>  =20

--=20
To unsubscribe from the list, just send an email to=20
lists at rebol.com with unsubscribe as the subject.

-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to