Changeset 20015 for trunk/FACT++


Ignore:
Timestamp:
12/28/20 15:00:39 (4 years ago)
Author:
tbretz
Message:
Readline needs to be told which are the printable charcters in the prompt and which are not... this was why it sometimes bevahed a bit erratic.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/LocalControl.h

    r16387 r20015  
    200200    {
    201201        return GetLinePrompt()+" "
    202             "\033[34m\033[1m"+fName+"\033[0m:"
    203             "\033[32m\033[1m"+fStateMachine->GetStateName()+"\033[0m> ";
     202            "\001\033[34m\033[1m\002"+fName+"\001\033[0m\002:"
     203            "\001\033[32m\033[1m\002"+fStateMachine->GetStateName()+"\001\033[0m\002> ";
    204204    }
    205205};
  • trunk/FACT++/src/RemoteControl.cc

    r16879 r20015  
    7171
    7272    // The server
    73     const string serv = "\033[34m\033[1m"+fCurrentServer+"\033[0m";
     73    const string serv = "\001\033[34m\033[1m\002"+fCurrentServer+"\001\033[0m\002";
    7474
    7575    // If no match found or something wrong found just output the server
     
    7878
    7979    // If everything found add the state to the server
    80     return beg + " " + serv + ":\033[32m\033[1m" + state.name + "\033[0m> ";
     80    return beg + " " + serv + ":\001\033[32m\033[1m\002" + state.name + "\001\033[0m\002> ";
    8181}
    8282
Note: See TracChangeset for help on using the changeset viewer.