graphical console; start factor with -graphical switch
parent
7545de4992
commit
7660f5ada9
|
@ -136,6 +136,7 @@ USE: namespaces
|
||||||
"/library/sdl/sdl-keyboard.factor"
|
"/library/sdl/sdl-keyboard.factor"
|
||||||
"/library/sdl/sdl-utils.factor"
|
"/library/sdl/sdl-utils.factor"
|
||||||
"/library/sdl/hsv.factor"
|
"/library/sdl/hsv.factor"
|
||||||
|
"/library/sdl/console.factor"
|
||||||
|
|
||||||
"/library/bootstrap/image.factor"
|
"/library/bootstrap/image.factor"
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@ USE: presentation
|
||||||
USE: words
|
USE: words
|
||||||
USE: unparser
|
USE: unparser
|
||||||
USE: kernel-internals
|
USE: kernel-internals
|
||||||
|
USE: console
|
||||||
|
|
||||||
: init-smart-terminal
|
: init-smart-terminal
|
||||||
"smart-terminal" get [
|
"smart-terminal" get [
|
||||||
|
@ -56,15 +57,20 @@ USE: kernel-internals
|
||||||
init-error-handler
|
init-error-handler
|
||||||
init-random
|
init-random
|
||||||
default-cli-args
|
default-cli-args
|
||||||
parse-command-line
|
parse-command-line ;
|
||||||
init-smart-terminal
|
|
||||||
run-user-init ;
|
|
||||||
|
|
||||||
: auto-inline-count 3 ;
|
|
||||||
[
|
[
|
||||||
warm-boot
|
warm-boot
|
||||||
garbage-collection
|
garbage-collection
|
||||||
"interactive" get [ print-banner listener ] when
|
init-smart-terminal
|
||||||
|
run-user-init
|
||||||
|
"graphical" get [
|
||||||
|
start-console
|
||||||
|
] [
|
||||||
|
"interactive" get [
|
||||||
|
print-banner listener
|
||||||
|
] when
|
||||||
|
] ifte
|
||||||
0 exit*
|
0 exit*
|
||||||
] set-boot
|
] set-boot
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
! Then, start Factor as usual (./f factor.image) and enter this
|
! Then, start Factor as usual (./f factor.image) and enter this
|
||||||
! at the listener:
|
! at the listener:
|
||||||
!
|
!
|
||||||
! "examples/console.factor" run-file
|
! USE: console
|
||||||
|
! start-console
|
||||||
|
|
||||||
IN: console
|
IN: console
|
||||||
USE: generic
|
USE: generic
|
||||||
|
@ -267,5 +268,3 @@ M: alien handle-event ( event -- ? )
|
||||||
console-quit
|
console-quit
|
||||||
] bind
|
] bind
|
||||||
] callcc0 ;
|
] callcc0 ;
|
||||||
|
|
||||||
start-console
|
|
Loading…
Reference in New Issue