Changeset 11

Show
Ignore:
Timestamp:
01/04/07 05:04:39 (2 days ago)
Author:
psilotum
Message:

add while loop in order to always display main_screen

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • people/psilotum/porta2030-console

    r10 r11  
    33################################################### 
    44# note and to do:  
    5 # 1. The library must auto-echo the input 
    6 # 2. The usb phone screen width:height = 128:64 (dots) 
    7 # 3. How to send escape(return to default screen) key 
     5# 1. NOTE: The library must auto-echo the input 
     6# 2. NOTE: The usb phone screen width:height = 128:64 (dots) 
     7# 3. TODO: How to send escape(return to default screen) key 
    88#    (for example: x, please refer following key mapping)  
    99#    without press enter again? 
    10 # 4. shortcut dial, address book 
    11 # 5. check date format of main_screen 
     10# 4. TODO: shortcut dial, address book 
     11# 5. check date format of main_screen (ok!) 
     12# 6. TODO: how to display the time realtime? 
     13# 7. TODO: no matter what key you press, the last screen 
     14#          will display the default main_screen 
     15#          I use ``while'' to implement this, but need more testing! 
    1216 
    1317# the key mapping 
     
    5357  echo `date +%Y/%m/%d` 
    5458  echo `date +%H:%M:%S` 
     59  return 0 
    5560} 
    5661 
     
    99104 
    100105# default display: main_screen 
     106while echo "" 
     107do 
     108 
    101109main_screen 
    102110read function_key 
     
    153161          dial 
    154162  else 
     163          main_screen 
    155164 
    156165fi 
     
    158167# dial number (IP) section 
    159168# I need to think when I wake up. 
     169done