Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-414

Masked input doesn't work properly on Windows

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 0.66.10
    • main
    • None

      On Windows Aesh doesn't seem to take over the line editor. As a result, when entering masked input, entered keys are echoed in clear text until ENTER is pressed, then a masked character is echoed.

      In addition, since Windows uses '\r\n\' as EOL, rather than '\n' Aesh line parser seems to get confused, and treats only '\r' as end of line character, leaving '\n' unread. A subsequent line read then receives '\n' as a first character.

      Current workaround is to determine that the runtime is on Windows, and in that case set masking char to 0, and to scan returned line and remove all '\n' from it.

              spederse@redhat.com Stale Pedersen
              marko.strukelj@gmail.com Marko Strukelj
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: