Git Product home page Git Product logo

Comments (6)

Emantor avatar Emantor commented on June 30, 2024 1

These are bracketed paste mode sequences, see the note within the ShellDriver documentation.

from labgrid.

ynezz avatar ynezz commented on June 30, 2024

Seems like you've additional \x1b[?2004l and \x1b[?2004h escape sequences in the output, which seems to be related to bracketed paste mode, so something related to your serial console or OS/shell? Maybe sharing more details about the OS and providing complete YAML config might help track this down.

from labgrid.

khilman avatar khilman commented on June 30, 2024

OK, but the real reason this doesn't match is because labgrid modifies the user-define regex by inserting $MARKER and \s+ in front of it, thus changing the expected behavior of the user. Isn't the right thing here for labgrid to fix the regex that it prepends to the user-given one to handle the paste mote sequence?

from labgrid.

ynezz avatar ynezz commented on June 30, 2024

Isn't the right thing here for labgrid to fix the regex that it prepends to the user-given one to handle the paste mode sequence?

For labgrid to address this, it would need to be aware of the DUT shell's features. This could be managed by probing the shell for its capabilities during runtime (quite cumbersome as there is no termcap entry) or by just introducing a new configuration option in ShellDriver to handle this?

bracketed_paste_mode (bool, default=False): set to True to enable ShellDriver's awareness that the DUT's
shell uses bracketed paste mode, allowing the shell to differentiate between typed and pasted input.

from labgrid.

Emantor avatar Emantor commented on June 30, 2024

Related discussion in closed PR #975.

from labgrid.

khilman avatar khilman commented on June 30, 2024

Does labgrid really need to know the DUT shell's features? Why not just make the labgrid-inserted regex between $MARKER and the user-given prompt a little more flexible. Right now it uses \s+ but if that was [\s\W]+, wouldn't that handle bracketed paste mode?

from labgrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.