335 Commits

Author SHA1 Message Date
Jonas Sundström
8362330647 Resource clean-up. Removing bitmap icons. Updating copyright dates. Removing dead code and redundant comments. Ending files in a newline.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-09-19 19:08:43 +00:00
Michael Lotz
8d5e993169 mmlr+anevilyak:
Unconditionally release the reader sem when the previous buffer size was 0
instead of testing for fParserWaiting as there is a race condition between
setting it to true in the parser thread and checking for it in the reader
thread so a release_sem() could be missed causing #4343. To reduce the possible
side effect of needlessly looping through acquire_sem() for too many
unconditionally released sems, we eat them in the parser thread once we're sure
we can't miss an event because of that. Also added a TODO about a memcpy()
optimization as pointed out by Rene.
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32733 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-27 02:15:20 +00:00
Axel Dörfler
53b322deb2 * Guys, you need to take more care when adding new shortcuts (hey Ingo!); this
is already the second time that the "Switch Terminals" functionality was lost
  this way. I've now changed the shortcut to Alt-Tab, as Alt-G is indeed the
  usual one for "Find Next".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 14:02:54 +00:00
Philippe Saint-Pierre
da2b227ec7 Preference panel : Reverted some of my "optimizations" since Ingo (correctly) points out that:
* they (the way I did it) can do more worse than good in some case
* they (the way I did it) are generally against our coding-style

Sorry about that. (ticket #4245)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 15:31:09 +00:00
Philippe Saint-Pierre
2c3476d3b7 Further optimization in the construction time of the Preference Panel (ticket #4245).
Indentation fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 05:31:27 +00:00
Philippe Saint-Pierre
307c87b225 Preference panel: Optimizations to make the window appear faster.
* In most case, the font size will already have been found with the regular check, move the extra check at the end if really it's needed.
* Some variables were declared inside loops (BTW, is that more conform to our coding style? It does feel faster if I declare them outside of the loop)
* The alignment was simplified (without visual difference).

In answer to ticket #4245.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 04:13:26 +00:00
Philippe Saint-Pierre
f7d8d9b87a _SanitizeIDs(): An off by one error was causing a bug in the terminal window numbering.
Ticket #3372.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 20:53:18 +00:00
Philippe Saint-Pierre
a3c4ce8b7d Preferences Panel : Check if the font, size or color was indeed changed before setting it as modified, avoiding unneeded "Save/Cancel" dialog.
This fixes ticket #3348.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 18:37:07 +00:00
Ingo Weinhold
e8cbd8db5d Use the handy B_CLOSE_ON_ESCAPE flag instead of fishing for the escape key in
DispatchMessage().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 17:02:21 +00:00
Ingo Weinhold
80abc2712f Changed the Ctrl-L behavior: The current screen is now scrolled up completely
instead of actually clearing it, so that it is still in the history.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 21:13:13 +00:00
Ingo Weinhold
48bbdc1c17 Fixed broken indentation (greetings to Stefano :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:57:14 +00:00
Ingo Weinhold
7cd672ff50 Fixed some gcc 4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:59 +00:00
Ingo Weinhold
f2b1ae9a76 Added escape key support in the find window (pirated from StyledEdit :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:03 +00:00
Ingo Weinhold
6fc8f3cdc9 Made the "Not Found." alerts closable via escape key. Not sure, whether we need
those alerts at all, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:31:31 +00:00
Ingo Weinhold
4aa87c0410 Adjusted variable names for the "Find {Previous,Next}" menu items.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:22:01 +00:00
Ingo Weinhold
d76009fdce * Renamed the "Find {Forward,Backward}" menu entries to "Find {Previous/Next}"
and assigned the usual shortcut keys (Cmd-[Shift-]G).
* Changed the behavior so that "Find Next" continues looking in the search
  direction. I'm somewhat undecided whether this is confusing, since the default
  (and usually desired) search direction is backward.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:17:20 +00:00
Philippe Saint-Pierre
b61e1f74bf Terminal's preferences window :
* Align the controls
 * Remove a bit of gray space that was superflous
 * Size dropdown menu now includes sizes of 13, 15 or 17, if needed, avoiding the case where is shown the word "size".
   Basically, it doesn't show them unless you got at that value by using the menu entries.

   Also disables the Increase/Decrease text size menu entries if you reach the upper or lower bounds.

Partly fixes ticket #4198.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-10 13:37:06 +00:00
Joachim Seemer
e2d1e007c0 Applied old patch by Urias (see #3209) improving strings in Terminal's preferences. Added a few more tidbits.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32205 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-08 07:45:06 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Ryan Leavengood
59cd64ac3c Overlapping the top of the scrollbar button no longer makes sense with a tabbed
Terminal. It just makes the button look improperly clipped when tabs are being
used.

I am not totally happy in how this looks though, and if someone has other ideas
feel free to fix it up (maybe a line under the tabs when they are showing?)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-08 05:46:16 +00:00
Philippe Saint-Pierre
db75c41bf8 This adds a Text Size menu to increase/decrease the size of the font.
This follows the enhancement suggestion #3203.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30687 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-09 22:48:22 +00:00
Axel Dörfler
5561b695a1 * Fixed a typo that prevented the right context menu copy action to work
on directories. See ticket #3575.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 10:14:25 +00:00
Axel Dörfler
35e29efeef * Messed up IsFontUsable(), this closed bug #3895 if I understand diver
correctly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-08 07:14:18 +00:00
Philippe Saint-Pierre
ffcedfaa29 Small tweaks regarding the scrollbars of terminal when used in fullscreen mode :
* if there is only one tab open, no functional change
* when there is two or more tabs open, display the scroll bar in the _ActiveTermView

It simply didn't make sense to not display the scrollbars in the _ActiveTermView since it was already shown in the other tabs. On the other hand, I can understand not showing the scrollbar when there is no tabview visible, as it mimic a real terminal.

That fixes bug reported in ticket #3300.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-03 03:23:17 +00:00
Axel Dörfler
11efbf0160 * Applied patch by Olivier to implement more mouse reporting modes, and thus
fixing bug #2854. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-24 14:15:18 +00:00
Axel Dörfler
4f65f5dca0 * Patch by Olivier to fix the function key assignments, a.k.a. as bug #2853.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 21:07:11 +00:00
Axel Dörfler
21543141dd * Applied slightly changed patch by Olivier that adds basic xterm style mouse
support, thanks!
* This probably closes bug #2854, confirmation pending.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30268 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 20:59:08 +00:00
Axel Dörfler
728c7f10e1 * Fixed warnings.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 20:57:33 +00:00
Stephan Aßmus
b936fc6770 * Watch the system clipboard for changes.
* On the event of a clipboard change, check if the clipboard contains text
  now and replace the contents of the internal "mouse clipboard". So when
  right/middle clicking into the Terminal, the current system clipboard contents
  are inserted. As soon as the user selects text in the Terminal again, that
  text will have priority over the system clipboard, as before.

Fixes ticket #3700.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 09:03:29 +00:00
Rene Gollent
dd6ab6242c gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:53:33 +00:00
Jonas Sundström
3b5c46634d Suppress ResizeView (the grey rows & columns view) when entering/leaving fullscreen mode, and when zooming. Its useful only when manually resizing the window. In the other cases it simply flickers by.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 16:56:42 +00:00
Stephan Aßmus
80aabca188 When the window is already full screen (ie, zoomed, not the full-screen mode
without any window border), do not enlarge or shrink the window when going from
or into tabbed mode. Fixes ticket #3646.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 13:37:04 +00:00
Stephan Aßmus
8222443084 For some reason I do not grasp right now, "c" needs to have uchar type or
the method is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 13:35:31 +00:00
Jérôme Duval
b38dbcd92d * set the thread priority to normal for spawned processes (bug #3564)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 22:19:35 +00:00
Axel Dörfler
7aed1511f6 * The window size is no longer directly saved when you change it in the menu.
* "Save as Default" now also saves the current Terminal size.
* Exchanged the strange default Termina sizes with some others, added a
  separator between the full screen setting.
* Removed the "Term" prefix from TermView::fTerm{Columns|Rows}.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 13:50:08 +00:00
Stephan Aßmus
51ff40fed0 When adding/removing the second tab, check if the window is near the bottom of
the screen, and then move/resize the window upward, so that it's bottom doesn't
go beyond the screen border.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 20:18:01 +00:00
Axel Dörfler
a41b1bcb3a * The shortcuts of the encodings shadowed other shortcuts, like Command-G to
switch Terminals. I've not only removed that shortcut, though, I disabled
  all encoding shortcuts, as I frankly don't see any use for them beyond
  confusing users (by accidently hitting one of the 134 shortcuts).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 20:00:01 +00:00
Stefano Ceccherini
4012c75a86 Remove TermView dependency from Shell. It now depends on TerminalBuffer instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 18:08:11 +00:00
Stefano Ceccherini
f498be9297 Applied patch by h.z. (slightly modified by myself) included in bug #2715. I tested it briefly with Konatu Tohaba font and it seems to work correctly. Please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-03 14:04:52 +00:00
Stephan Aßmus
5ade2c5acd Fixed coding style issues pointed out by Jerome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 12:17:02 +00:00
Stephan Aßmus
cee9364ac5 Applied patch by Clemens Zeidler which gives the Terminal a nice context
menu with additional options when dropping files from Tracker into the
Terminal. Thanks a lot, Clemens!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 11:29:39 +00:00
Stefano Ceccherini
ee9b4396bf fCheckMouseTracking was never initialized to false, causing spurious selections when opening a new tab. Fixes bug #2910
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 16:01:43 +00:00
Axel Dörfler
2f8909e465 * Removed the old "andrew" code. IIRC it was a start to rework Terminal, but
it's so outdated by now, that it's hardly of any use now. Of course, it's
  still in the SVN history if you want to have a look at it :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:27:52 +00:00
Axel Dörfler
08a6ab444b * Added a _MouseDistanceSinceLastClick() that returns the square of the pixel
distance of the last click and the point passed in.
* Use this one to delay starting of character wide selections.
* Also, treat double/triple clicks as single clicks if the mouse moved too far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:06:25 +00:00
Axel Dörfler
6a63492f6c * When switching Terminals via Command-G, we now also take the workspace
information into account, ie. we now behave like the Terminal on BeOS, and only
  allow to switch between the Terminal windows of one workspace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:48:19 +00:00
Axel Dörfler
302809b46f * Moved duplicated initializers to the _InitObject() method.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:23:17 +00:00
François Revol
a326b4f1b1 Fix the BeOS build. Yeah I know I'm the only one building Terminal on Zeta...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 11:53:43 +00:00
Axel Dörfler
c2f7e34f8d * When resizing the Terminal, we now show a small BStringView that displays the
current size of the Terminal in characters.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 10:24:53 +00:00
Ingo Weinhold
5b1d60c80e r26509 broke char codes (e.g. Ctrl-K and Ctrl-D) matching one of the
checked B_* char codes. Fixes bug #2533.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-21 22:14:25 +00:00
Ingo Weinhold
552580cd28 * TermView::KeyDown(): We were writing to the TTY even when the user
pressed a shortcut that should result in a terminal action
  (e.g. Shift-Left/Right -- Shift-Left generated a Ctrl-\).
* Removed spaces at the end of lines.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-07-19 16:12:32 +00:00