Comments (6)
These are bracketed paste mode sequences, see the note within the ShellDriver documentation.
from labgrid.
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.
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.
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.
Related discussion in closed PR #975.
from labgrid.
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)
- write_file does not properly escape file names HOT 5
- Exception when sending "purge" to a remote serial driver HOT 4
- ManagedFile uses `/var/cache/labgrid/..` sync path even when resource is remote HOT 5
- add option to use `scp` instead of `rsync` in `ManagedFile` for syncing files to minimal targets
- Missing serial output at start when using USB loader HOT 6
- linter warnings since pylint 3.2.0 HOT 1
- Use black or ruff formatter HOT 1
- Remote NetworkPowerPort HOT 1
- SerialDriver: BindingErrors hidden by AttributeError caused by not (yet) set target HOT 1
- Timeout Parameter for "labgrid-client reserve" HOT 1
- Labgrid exporter ser2net fails with Invalid accepter port name/number
- Ad-hoc TFTP server driver HOT 2
- grpc error HOT 9
- ImportError: cannot import name 'identity_realm_name_category' from 'autobahn.wamp.message' HOT 2
- (grpc) No module named 'labgrid.remote.generated' HOT 1
- How to best add support for tp link switches?
- Assume port 20408 for GRPC exporter HOT 2
- "labgrid-client -p Place power get" does not find specified usb port
- Labgird Client API
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labgrid.