Linux: position() bug?
- Posted by K_D_R Jan 22, 2012
- 1398 views
Running the demo file search.ex:
This is a screen capture from a run of the demo file search.ex:
string (* and ? may be used): load_files y --<<<-- cursor placed here after displaying "match case? (n)" match case? (n) file-spec (*.*): *.ex n --<<<-------- ? press q to quitries? (y) --? 23 files scanned (*.ex) 20 files skipped 0 files contained "load_files" (case must match) search time: 0.0 seconds
This is the code segment form search.ex:
if alphabetic(orig_string) then puts(SCREEN, "match case? (n)") pos = get_position() position(pos[1], pos[2] - 2)--<<<----- pos[1] should place on the same line as the match case? (n)" prompt, yes? match_case = find('y', gets(KEYB)) puts(SCREEN, '\n') -- -- puts(SCREEN, "scan subdirectories? (y)") pos = get_position() position(pos[1], pos[2] - 2) --<<------- scan_subdirs = not match("n", gets(KEYB))
Regards, Kenneth Rhodes