Menu

Lcdproc Menu

Help
Albert
2015-07-15
2015-08-24
  • Albert

    Albert - 2015-07-15

    Hi,

    I have compiled and run on opensuse 13.1 (hd44780 with winamp parallel port). The LCDd and lcdproc program works (version 0.5dev). I tried running LCDd and telnet and it works fine with the screen_add widget_add. But when I tried the menu_add_item, nothing appears on screen (blank). What am I missing here? Thanks.

    telnet localhost 13666

    hello
    client_set name my_name
    screen_add my_screen
    widget_add my_screen my_name string
    widget_set my_screen my_name 1 1 "Hello World"


    telnet localhost 13666

    hello
    client_set name Parenttest
    menu_add_item "" ask menu "Leave menus?" -is_hidden true
    menu_add_item "ask" ask_yes action "Yes" -next quit
    menu_add_item "ask" ask_no action "No" -next close
    menu_add_item "" test menu "Test"
    menu_add_item "test" test_action action "Action"
    menu_add_item "test" test_checkbox checkbox "Checkbox"
    menu_add_item "test" test_ring ring "Ring" -strings "one\ttwo\tthree"
    menu_add_item "test" test_slider slider "Slider" -mintext "" -maxtext "" -value "50"
    menu_add_item "test" test_numeric numeric "Numeric" -value "42"
    menu_add_item "test" test_alpha alpha "Alpha" -value "abc"
    menu_add_item "test" test_ip ip "IP" -v6 false -value "192.168.1.1"
    menu_add_item "test" test_menu menu "Menu"
    menu_add_item "test_menu" test_menu_action action "Submenu's action"
    menu_set_item "" test -prev "ask"
    menu_set_item "test" test_action -next "test_checkbox"
    menu_set_item "test" test_checkbox -next "test_ring" -prev "test_action"
    menu_set_item "test" test_ring -next "test_slider" -prev "test_checkbox"
    menu_set_item "test" test_slider -next "test_numeric" -prev "test_ring"
    menu_set_item "test" test_numeric -next "test_alpha" -prev "test_slider"
    menu_set_item "test" test_alpha -next "test_ip" -prev "test_numeric"
    menu_set_item "test" test_ip -next "test_menu" -prev "test_alpha"
    menu_set_item "test" test_menu_action -next "close"
    menu_set_main ""

     

    Last edit: Albert 2015-07-15
    • North Korea

      North Korea - 2015-08-24

      Pressing Escape key, will show you main menu. This is true for "curses" driver.

       
  • North Korea

    North Korea - 2015-08-24

    Or to do it programmatically, send this command to the server:
    menu_goto ""

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.