summaryrefslogtreecommitdiffstats
path: root/lib/libforms/examples/example.frm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libforms/examples/example.frm')
-rw-r--r--lib/libforms/examples/example.frm28
1 files changed, 11 insertions, 17 deletions
diff --git a/lib/libforms/examples/example.frm b/lib/libforms/examples/example.frm
index e2ebd80..d1f5349 100644
--- a/lib/libforms/examples/example.frm
+++ b/lib/libforms/examples/example.frm
@@ -1,9 +1,4 @@
-Colours example {
- pair = red, yellow
- pair = blue, white
-}
-
-field1 { attributes = A_BLINK|A_BOLD text = "This text is bold and flashy" }
+field1 { attributes = 0 text = "This text is bold and flashy" }
field2 {
height = 2
@@ -28,28 +23,27 @@ field7 { selected = 0 options = "Choose", "another", "of", "these" }
field8 { width = 6 action = "EXIT" function = exit_form }
field9 {
- attributes = COLOR_PAIR(1)
- highlight = COLOR_PAIR(1)|A_BOLD
- action = "CANCEL"
- function = cancel_form
+action = "CANCEL"
+function = cancel_form
}
Form example at 0,0 {
height = 25
width = 80
+ start = input1
colortable = example
- attributes = COLOR_PAIR(1)
+ attributes = 0
- Title {attributes = COLOR_PAIR(2) text = "A Simple Demo"} at 0,30
+ Title {attributes = 0 text = "A Simple Demo"} at 0,30
field1 at 3,23
field2 at 7, 2
field4 at 11, 2
field6 at 15, 2
- input1 {field3} at 7,45, next=input2, up=input2, down=input2
- input2 {field5} at 11,45, next=menu1, up=input1, down=menu1
- menu1 {field7} at 15,45, next=quit, up=input2, down=quit
- quit {field8} at 20,20, up=menu1, right=cancel
- cancel {field9} at 20,43, up=input1, down=input1, left=quit, right=input1
+ input1 {field3} at 7,45, next=input2
+ input2 {field5} at 11,45, next=menu1
+ menu1 {field7} at 15,45, next=quit
+ quit {field8} at 20,20, up = menu1, right = cancel
+ cancel {field9} at 20,43, next=input1
}
OpenPOWER on IntegriCloud