MCPcopy
hub / github.com/jesseduffield/lazygit / InputDelay

Function InputDelay

pkg/integration/components/test.go:239–250  ·  view source on GitHub ↗

this is the delay in milliseconds between keypresses or mouse clicks defaults to zero

()

Source from the content-addressed store, hash-verified

237// this is the delay in milliseconds between keypresses or mouse clicks
238// defaults to zero
239func InputDelay() int {
240 delayStr := os.Getenv("INPUT_DELAY")
241 if delayStr == "" {
242 return 0
243 }
244
245 delay, err := strconv.Atoi(delayStr)
246 if err != nil {
247 panic(err)
248 }
249 return delay
250}

Callers 1

RunMethod · 0.85

Calls 1

GetenvMethod · 0.80

Tested by

no test coverage detected