Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
Konsole
Commits
e91c8d77
Commit
e91c8d77
authored
May 26, 2016
by
Kurt Hindenburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a few krazy/api issues
parent
3e8de095
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/ProfileManager.cpp
src/ProfileManager.cpp
+1
-1
src/Session.cpp
src/Session.cpp
+3
-3
src/Session.h
src/Session.h
+2
-2
No files found.
src/ProfileManager.cpp
View file @
e91c8d77
...
...
@@ -362,7 +362,7 @@ void ProfileManager::changeProfile(Profile::Ptr profile,
newName
=
QStringLiteral
(
"Profile "
)
+
QString
::
number
(
nameSuffix
);
newTranslatedName
=
i18nc
(
"The default name of a profile"
,
"Profile #%1"
,
nameSuffix
);
// TODO: remove the # above and below - too many issues
newTranslatedName
.
remove
(
"#"
);
newTranslatedName
.
remove
(
'#'
);
nameSuffix
++
;
}
while
(
existingProfileNames
.
contains
(
newName
));
...
...
src/Session.cpp
View file @
e91c8d77
...
...
@@ -740,9 +740,9 @@ void Session::reportBackgroundColor(const QColor& c)
{
#define to65k(a) (QString("%1").arg((int)(a*0xFFFF), 4, 16, QChar('0')))
QString
msg
=
"
\033
]11;rgb:"
+
to65k
(
c
.
redF
())
+
"/"
+
to65k
(
c
.
greenF
())
+
"/"
+
to65k
(
c
.
blueF
())
+
"
\a
"
;
+
to65k
(
c
.
redF
())
+
'/'
+
to65k
(
c
.
greenF
())
+
'/'
+
to65k
(
c
.
blueF
())
+
'
\a
'
;
_emulation
->
sendString
(
msg
.
toUtf8
());
#undef to65k
}
...
...
src/Session.h
View file @
e91c8d77
...
...
@@ -663,8 +663,8 @@ signals:
void
selectionChanged
(
const
QString
&
text
);
/**
* Emitted when background request (
'
\033]11;?\a
'
) terminal code received.
* Terminal is expected send
'
\033]11;rgb:RRRR/GGGG/BBBB\a
'
response.
* Emitted when background request (
"
\033]11;?\a
"
) terminal code received.
* Terminal is expected send
"
\033]11;rgb:RRRR/GGGG/BBBB\a
"
response.
*
* Originally implemented to support vim's background detection feature
* (without explictly setting 'bg=dark' within local/remote vimrc)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment