Skip to content

Commit

Permalink
avoid error in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
YO4 committed Oct 26, 2024
1 parent 7616d7f commit 7cbf84c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/yamatanooroti/windows/terminal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.setup_console(height, width, wait, timeout, name)
end

def console_process_id
@wt.active_tab.pid
@wt.active_tab&.pid
end

def get_size
Expand Down Expand Up @@ -83,11 +83,11 @@ def self.diagnose_size_capability
Self.max_size = [[max_size[0], 60].min, [max_size[1], 200].min]
puts max_size.then { |r, c| "Windows Terminal maximum size: rows: #{r}, columns: #{c}" }
wt.close!
wt = self.new(2, 2, 0.01, 5.0)
min_size = wt.get_size
Self.min_size = min_size
puts min_size.then { |r, c| "Windows Terminal smallest size: rows: #{r}, columns: #{c}" }
wt.close!
#wt = self.new(2, 2, 0.01, 5.0)
#min_size = wt.get_size
#Self.min_size = min_size
#puts min_size.then { |r, c| "Windows Terminal smallest size: rows: #{r}, columns: #{c}" }
#wt.close!
puts Self.max_size.then {|r, c| "Use test window size: rows: #{r}, columns: #{c}" }
end

Expand Down
5 changes: 3 additions & 2 deletions lib/yamatanooroti/windows/wt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def initialize(wt, title, *keys)
@keys = [keys] # [[image_name, search_signature], ...]
end
@pid = {}
@console_ready = false
end

def self.new_tab(wt, title)
Expand All @@ -148,7 +149,7 @@ def self.new_tab(wt, title)
"#{keeper_command}"

DL.create_console(command, M.show_console_param())
self.new(wt, title, [M.keeper_commandname, signature])
new(wt, title, [M.keeper_commandname, signature])
end

def self.new_tab_hv(wt, title, hsplit, vsplit)
Expand All @@ -174,7 +175,7 @@ def self.new_tab_hv(wt, title, hsplit, vsplit)
"#{keeper_command_v}"

DL.create_console(command, M.show_console_param())
self.new(wt, title,
new(wt, title,
[M.keeper_commandname, signature],
[M.keeper_commandname, signature_h],
[M.keeper_commandname, signature_v]
Expand Down

0 comments on commit 7cbf84c

Please sign in to comment.