Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#65): compatibility with Pharo 13 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PTerm-Core/PTerm.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ PTerm >> pid [
PTerm >> run [
sub := self announcer when: PTermDataEvent do: [ :e|
e data do:[:c|
up upcall: c codePoint ]].
up upcall: c codePoint ]] for: self.
[ self waitForOutput ] forkAt: Processor userSchedulingPriority

]
Expand All @@ -120,7 +120,7 @@ PTerm >> setWinsize: point [
buf at: 6 put: 0.
buf at: 7 put: 0.
buf at: 8 put:0.
st := self lib ioct: self master cmd: self lib class TIOCSWINSZ arg: buf getHandle.
st := self lib ioct: master cmd: self lib class TIOCSWINSZ arg: buf getHandle.
st = 0 ifFalse:[^self error: 'Cannot set window size to', point asString ]
]

Expand Down
2 changes: 1 addition & 1 deletion PTerm-UI/TerminalEmulator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ TerminalEmulator class >> initialize [
e data class = LogicalFont ifTrue:[i updateFont]
ifFalse:[i updateTheme]
]
].
] for: self.
]

{ #category : #'world menu' }
Expand Down
2 changes: 1 addition & 1 deletion PTerm-UI/TerminalEmulatorLineMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -4713,7 +4713,7 @@ TerminalEmulatorLineMorph >> initialize [
"Initialize the receiver with empty contents."

self contents: TerminalEmulatorTextState new.
self announcer when: TerminalEmulatorConfigChange do: [ :e| self setUpFont. Transcript show: 'font changed'].
self announcer when: TerminalEmulatorConfigChange do: [ :e| self setUpFont. Transcript show: 'font changed'] for: self.
"self on: Character null ctrl do: [ :e| Transcript show: 'stroke';cr ]"
"cursorColour := Color red."
]
Expand Down
2 changes: 1 addition & 1 deletion PTerm-UI/TerminalEmulatorMorph.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ TerminalEmulatorMorph >> showScrollbar [

scroll isNil
ifTrue:
[scroll := ScrollBar new model: self;
[scroll := (Smalltalk globals at: #ScrollBar ifAbsent: [ ^ScrollBarMorph ]) new model: self;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The block [ ^ScrollBarMorph ] should probably be [ ScrollBarMorph ] (so without the return).

setValueSelector: #scrollbarValue:.
self
addMorphBack: scroll;
Expand Down