Merge lp:~mcintire-evan/ubuntu-terminal-app/desktop-dimensions into lp:~ubuntu-terminal-dev/ubuntu-terminal-app/reboot

Proposed by Evan McIntire
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 157
Merged at revision: 158
Proposed branch: lp:~mcintire-evan/ubuntu-terminal-app/desktop-dimensions
Merge into: lp:~ubuntu-terminal-dev/ubuntu-terminal-app/reboot
Diff against target: 14 lines (+2/-2)
1 file modified
src/app/qml/ubuntu-terminal-app.qml (+2/-2)
To merge this branch: bzr merge lp:~mcintire-evan/ubuntu-terminal-app/desktop-dimensions
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Review via email: mp+284381@code.launchpad.net

Commit message

Change the default dimensions so the terminal is a more proper size for desktops

Description of the change

Change the default dimensions so the terminal is a more proper size for desktops

To post a comment you must log in.
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Works a treat, thanks Evan.

review: Approve
Revision history for this message
David Planella (dpm) wrote :

Thanks a lot Evan!

I think this effectively fixes the bug, but on a second iteration, I wonder whether we could have dynamic conversion of gu to column width/height, so that we could set the default width to e.g. 80 columns by 25 rows and it would result in the same column/row size on all displays.

Revision history for this message
Evan McIntire (mcintire-evan) wrote :

Thanks for the feedback!

I'd love to improve this with the suggestion you made, but I don't know what you're referring to (I'm fairly new to working with QML). I thought the point of the units.gu was to have the same size on all devices, as it would scale to match the pixel denisty and the like

If you could elaborate I'd love to know and improve this!

Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

@Evan: yes, that's what units.gu's do.
What dpm says is that the terminal console should be 80 chars (width) x 24 chars (height).
That's the default/standard size of the VT100 terminal emulators.

That surely needs to be translated in terms of units.gu(), detecting the font size currently used by the terminal.

Seeing the bug report dpm opened earlier (lp:1539635) I guess the final result should be similar to:
    https://imgur.com/gXEjXQS

So that the app could be fully usable as a gnome-terminal replacement.

@Alan: IIRC, Filippo has discussed several times about the default terminal size, before he left the project. Is there any relevant observation he did?

Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

I agree 80x25 (at whatever font size) is optimal for desktop initial size.

I don't recall anything specific about discussions we had about terminal size, but "do what other terminals do" seems to be the most sane way forward as it's familiar.

@stefano - is that a new tabbed UI I see there!? :) It looks amazing!

Revision history for this message
Evan McIntire (mcintire-evan) wrote :

@stefano, popey, thanks, I'll get right on that!

Revision history for this message
Stefano Verzegnassi (verzegnassi-stefano) wrote :

Yep, I agree.
Probably it's worth to provide a list of default modes too, as gnome-terminal does: 80x24, 80x43, 132x24 and 132x43.

@Alan: That's something I was playing on some week ago. I took that screenshot for a discussion I had with Niklas about the desktop UI. :)

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/app/qml/ubuntu-terminal-app.qml'
2--- src/app/qml/ubuntu-terminal-app.qml 2016-01-22 18:29:56 +0000
3+++ src/app/qml/ubuntu-terminal-app.qml 2016-01-29 02:29:53 +0000
4@@ -12,8 +12,8 @@
5 applicationName: "com.ubuntu.terminal"
6 automaticOrientation: true
7
8- width: units.gu(50)
9- height: units.gu(75)
10+ width: units.gu(90)
11+ height: units.gu(55)
12
13 AuthenticationService {
14 onDenied: Qt.quit();

Subscribers

People subscribed via source and target branches