all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* display-line-number in term
@ 2019-02-15 10:09 Ergus
  0 siblings, 0 replies; 3+ messages in thread
From: Ergus @ 2019-02-15 10:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Guys, I have a general question and maybe someone faced it already.

When I use global-display-line-numbers I have some issues when I open a
terminal because of the number of colors. 

The lines are broken because "tput cols" reports the total with of the
window, but does not take into account the 3/4 chars taken by the line
number. A possible solution could be to disable the numbers in
term-mode, but maybe there is a better/more elegant solution.

Any idea?

Thanks in advance



^ permalink raw reply	[flat|nested] 3+ messages in thread

* display-line-number in term
@ 2019-02-15 11:26 Ergus
  2019-02-15 14:12 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Ergus @ 2019-02-15 11:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Guys, I have a general question and maybe someone faced it already.

When I use global-display-line-numbers I have some issues when I open a
terminal because of the line numbers.

The lines are broken because "tput cols" reports the total with of the
window, but does not take into account the 3/4 (or more) chars taken by
the line number. 

The problem is worst when trying to use for example moc.

A possible solution could be to disable the numbers in
term-mode, but maybe there is a better/more elegant solution.

Any idea?

Thanks in advance





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display-line-number in term
  2019-02-15 11:26 Ergus
@ 2019-02-15 14:12 ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2019-02-15 14:12 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 15 Feb 2019 12:26:10 +0100
> From: Ergus <spacibba@aol.com>
> 
> When I use global-display-line-numbers I have some issues when I open a
> terminal because of the line numbers.
> 
> The lines are broken because "tput cols" reports the total with of the
> window, but does not take into account the 3/4 (or more) chars taken by
> the line number. 
> 
> The problem is worst when trying to use for example moc.
> 
> A possible solution could be to disable the numbers in
> term-mode, but maybe there is a better/more elegant solution.
> 
> Any idea?

Please report this as a bug, preferably with a complete reproducing
recipe.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-15 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-15 10:09 display-line-number in term Ergus
  -- strict thread matches above, loose matches on Subject: below --
2019-02-15 11:26 Ergus
2019-02-15 14:12 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.