Skip to content

Conversation

@zedinosaur
Copy link

Per the specification described in https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda, add hyperlink support to mosh.

Closes #1245

Per the specification described in https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda,
add hyperlink support to mosh.

Closes mobile-shell#1245
@achernya
Copy link
Collaborator

For us to consider merging this it needs to have test coverage.

@zedinosaur
Copy link
Author

That's a fair cop. I didn't immediately find the test suite but now I have I will take a crack at it.

Comment on lines +622 to +624
if ( id_pos != std::string::npos ) {
id = params.substr( id_pos + 3, params.find( ":", id_pos + 3 ) );
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this right. Consider what happens if there's two key/value pairs in params:

id=123:foo=bar

id_pos is 0, and params.find(":", id_pos + 3) is 6.

So then id becomes params.substr(3, 6) which is 123:fo

(The second argument to std::string::substr is length of the substring, not the final character position)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for OSC 8 sequences (hyperlinks)

3 participants