Linux: position() bug?

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu